d3d10: Implement ID3D10EffectVariable::GetMemberByName().

This commit is contained in:
Rico Schüller 2009-10-01 11:55:33 +02:00 committed by Alexandre Julliard
parent 263e29e61e
commit 9fdd548d2e
1 changed files with 27 additions and 2 deletions

View File

@ -1997,9 +1997,34 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_Get
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_GetMemberByName(
ID3D10EffectVariable *iface, LPCSTR name)
{
FIXME("iface %p, name %s stub!\n", iface, debugstr_a(name));
struct d3d10_effect_variable *This = (struct d3d10_effect_variable *)iface;
unsigned int i;
return NULL;
TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
if (!name)
{
WARN("Invalid name specified\n");
return (ID3D10EffectVariable *)&null_variable;
}
for (i = 0; i < This->type->member_count; ++i)
{
struct d3d10_effect_variable *m = &This->members[i];
if (m->name)
{
if (!strcmp(m->name, name))
{
TRACE("Returning member %p\n", m);
return (ID3D10EffectVariable *)m;
}
}
}
WARN("Invalid name specified\n");
return (ID3D10EffectVariable *)&null_variable;
}
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_GetMemberBySemantic(