mirror of
https://github.com/reactos/wine.git
synced 2024-12-03 09:20:56 +00:00
d3d10: Implement ID3D10EffectVariable::GetAnnotationByName().
This commit is contained in:
parent
15a0274fe4
commit
96c2b578fe
@ -1701,9 +1701,24 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_Get
|
||||
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_GetAnnotationByName(
|
||||
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));
|
||||
|
||||
for (i = 0; i < This->annotation_count; ++i)
|
||||
{
|
||||
struct d3d10_effect_variable *a = &This->annotations[i];
|
||||
if (!strcmp(a->name, name))
|
||||
{
|
||||
TRACE("Returning annotation %p\n", a);
|
||||
return (ID3D10EffectVariable *)a;
|
||||
}
|
||||
}
|
||||
|
||||
WARN("Invalid name specified\n");
|
||||
|
||||
return (ID3D10EffectVariable *)&null_variable;
|
||||
}
|
||||
|
||||
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_GetMemberByIndex(
|
||||
|
Loading…
Reference in New Issue
Block a user