Commit f5f87b89 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d10: Implement ID3D10EffectTechnique::GetPassByIndex().

parent 5d5ae0c4
......@@ -682,9 +682,22 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_technique_Ge
static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByIndex(ID3D10EffectTechnique *iface,
UINT index)
{
FIXME("iface %p, index %u stub!\n", iface, index);
struct d3d10_effect_technique *This = (struct d3d10_effect_technique *)iface;
struct d3d10_effect_pass *p;
return NULL;
TRACE("iface %p, index %u\n", iface, index);
if (index >= This->pass_count)
{
WARN("Invalid index specified\n");
return NULL;
}
p = &This->passes[index];
TRACE("Returning pass %p, \"%s\"\n", p, p->name);
return (ID3D10EffectPass *)p;
}
static struct ID3D10EffectPass * STDMETHODCALLTYPE d3d10_effect_technique_GetPassByName(ID3D10EffectTechnique *iface,
......
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