Commit 0b4e6c71 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3d10: Parse effect shaders as anonymous shaders.

parent 0682453d
......@@ -45,6 +45,12 @@ enum d3d10_effect_object_type
D3D10_EOT_GEOMETRYSHADER = 8,
};
enum d3d10_effect_object_operation
{
D3D10_EOO_VALUE = 1,
D3D10_EOO_ANONYMOUS_SHADER = 7,
};
struct d3d10_effect_object
{
struct d3d10_effect_pass *pass;
......@@ -105,6 +111,7 @@ struct d3d10_effect_variable
struct d3d10_effect_type *type;
struct d3d10_effect *effect;
void *data;
char *name;
char *semantic;
DWORD buffer_offset;
......@@ -143,6 +150,12 @@ struct d3d10_effect_technique
struct d3d10_effect_variable *annotations;
};
struct d3d10_effect_anonymous_shader
{
struct d3d10_effect_variable shader;
struct d3d10_effect_type type;
};
/* ID3D10Effect */
extern const struct ID3D10EffectVtbl d3d10_effect_vtbl DECLSPEC_HIDDEN;
struct d3d10_effect
......@@ -167,11 +180,14 @@ struct d3d10_effect
DWORD rendertargetview_count;
DWORD depthstencilview_count;
DWORD shader_call_count;
DWORD shader_compile_count;
DWORD anonymous_shader_count;
DWORD anonymous_shader_current;
struct wine_rb_tree types;
struct d3d10_effect_variable *local_buffers;
struct d3d10_effect_variable *local_variables;
struct d3d10_effect_anonymous_shader *anonymous_shaders;
struct d3d10_effect_technique *techniques;
};
......
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