Commit 37b7de2b authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3d10: Add D3D10_EOO_PARSED_OBJECT_INDEX in parse_fx10_object().

parent 7a12bf98
......@@ -49,6 +49,7 @@ enum d3d10_effect_object_operation
{
D3D10_EOO_VALUE = 1,
D3D10_EOO_PARSED_OBJECT = 2,
D3D10_EOO_PARSED_OBJECT_INDEX = 3,
D3D10_EOO_ANONYMOUS_SHADER = 7,
};
......
......@@ -965,6 +965,17 @@ static HRESULT parse_fx10_object(struct d3d10_effect_object *o, const char **ptr
hr = S_OK;
break;
case D3D10_EOO_PARSED_OBJECT_INDEX:
/* This is a local object, we've parsed in parse_fx10_local_object, which has an array index. */
data_ptr = data + offset;
read_dword(&data_ptr, &offset);
read_dword(&data_ptr, &o->index);
TRACE("Shader = %s[%u].\n", data + offset, o->index);
o->data = e->lpVtbl->GetVariableByName(e, data + offset);
hr = S_OK;
break;
case D3D10_EOO_ANONYMOUS_SHADER:
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