Commit 98ef3c88 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Expose feature level in wined3d caps.

parent 7b58d1a0
......@@ -6190,6 +6190,8 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
caps->shader_double_precision = d3d_info->shader_double_precision;
caps->max_feature_level = d3d_info->feature_level;
return WINED3D_OK;
}
......
......@@ -184,19 +184,6 @@ struct wined3d_ffp_attrib_ops
wined3d_generic_attrib_func generic[WINED3D_FFP_EMIT_COUNT];
};
enum wined3d_feature_level
{
WINED3D_FEATURE_LEVEL_5,
WINED3D_FEATURE_LEVEL_6,
WINED3D_FEATURE_LEVEL_7,
WINED3D_FEATURE_LEVEL_8,
WINED3D_FEATURE_LEVEL_9_SM2,
WINED3D_FEATURE_LEVEL_9_SM3,
WINED3D_FEATURE_LEVEL_10,
WINED3D_FEATURE_LEVEL_11,
WINED3D_FEATURE_LEVEL_COUNT
};
struct wined3d_d3d_info
{
struct wined3d_d3d_limits limits;
......
......@@ -88,6 +88,19 @@ enum wined3d_device_type
WINED3D_DEVICE_TYPE_NULLREF = 4,
};
enum wined3d_feature_level
{
WINED3D_FEATURE_LEVEL_5,
WINED3D_FEATURE_LEVEL_6,
WINED3D_FEATURE_LEVEL_7,
WINED3D_FEATURE_LEVEL_8,
WINED3D_FEATURE_LEVEL_9_SM2,
WINED3D_FEATURE_LEVEL_9_SM3,
WINED3D_FEATURE_LEVEL_10,
WINED3D_FEATURE_LEVEL_11,
WINED3D_FEATURE_LEVEL_COUNT
};
enum wined3d_degree_type
{
WINED3D_DEGREE_LINEAR = 1,
......@@ -1962,6 +1975,8 @@ struct wined3d_caps
struct wined3d_ddraw_caps ddraw_caps;
BOOL shader_double_precision;
enum wined3d_feature_level max_feature_level;
};
struct wined3d_color_key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment