Commit 7a12bf98 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3d10: Add D3D10_EOO_PARSED_OBJECT in parse_fx10_object().

parent f811cd3e
...@@ -48,6 +48,7 @@ enum d3d10_effect_object_type ...@@ -48,6 +48,7 @@ enum d3d10_effect_object_type
enum d3d10_effect_object_operation enum d3d10_effect_object_operation
{ {
D3D10_EOO_VALUE = 1, D3D10_EOO_VALUE = 1,
D3D10_EOO_PARSED_OBJECT = 2,
D3D10_EOO_ANONYMOUS_SHADER = 7, D3D10_EOO_ANONYMOUS_SHADER = 7,
}; };
......
...@@ -910,6 +910,7 @@ static HRESULT parse_fx10_object(struct d3d10_effect_object *o, const char **ptr ...@@ -910,6 +910,7 @@ static HRESULT parse_fx10_object(struct d3d10_effect_object *o, const char **ptr
enum d3d10_effect_object_operation operation; enum d3d10_effect_object_operation operation;
HRESULT hr; HRESULT hr;
struct d3d10_effect *effect = o->pass->technique->effect; struct d3d10_effect *effect = o->pass->technique->effect;
ID3D10Effect *e = (ID3D10Effect *)effect;
read_dword(ptr, &o->type); read_dword(ptr, &o->type);
TRACE("Effect object is of type %#x.\n", o->type); TRACE("Effect object is of type %#x.\n", o->type);
...@@ -956,6 +957,14 @@ static HRESULT parse_fx10_object(struct d3d10_effect_object *o, const char **ptr ...@@ -956,6 +957,14 @@ static HRESULT parse_fx10_object(struct d3d10_effect_object *o, const char **ptr
} }
break; break;
case D3D10_EOO_PARSED_OBJECT:
/* This is a local object, we've parsed in parse_fx10_local_object. */
TRACE("Shader = %s.\n", data + offset);
o->data = e->lpVtbl->GetVariableByName(e, data + offset);
hr = S_OK;
break;
case D3D10_EOO_ANONYMOUS_SHADER: case D3D10_EOO_ANONYMOUS_SHADER:
TRACE("Anonymous shader\n"); TRACE("Anonymous shader\n");
......
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