mirror of
https://github.com/reactos/wine.git
synced 2025-01-26 22:24:37 +00:00
d3d10: Implement ID3D10EffectConstantBuffer::GetAnnotationByIndex().
This commit is contained in:
parent
4d91fba96f
commit
e6af0472b3
@ -1906,9 +1906,22 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetDesc(ID3D10Effe
|
|||||||
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByIndex(
|
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByIndex(
|
||||||
ID3D10EffectConstantBuffer *iface, UINT index)
|
ID3D10EffectConstantBuffer *iface, UINT index)
|
||||||
{
|
{
|
||||||
FIXME("iface %p, index %u stub!\n", iface, index);
|
struct d3d10_effect_local_buffer *This = (struct d3d10_effect_local_buffer *)iface;
|
||||||
|
struct d3d10_effect_variable *a;
|
||||||
|
|
||||||
return NULL;
|
TRACE("iface %p, index %u\n", iface, index);
|
||||||
|
|
||||||
|
if (index >= This->annotation_count)
|
||||||
|
{
|
||||||
|
WARN("Invalid index specified\n");
|
||||||
|
return (ID3D10EffectVariable *)&null_variable;
|
||||||
|
}
|
||||||
|
|
||||||
|
a = &This->annotations[index];
|
||||||
|
|
||||||
|
TRACE("Returning annotation %p, %s\n", a, debugstr_a(a->name));
|
||||||
|
|
||||||
|
return (ID3D10EffectVariable *)a;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByName(
|
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByName(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user