Rico Schüller : d3d10: Implement ID3D10EffectConstantBuffer::GetAnnotationByIndex().
Module: wine Branch: master Commit: e6af0472b308c97b5444b62886f8485a119091e8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e6af0472b308c97b5444b62886... Author: Rico Schüller <kgbricola(a)web.de> Date: Wed Sep 9 19:17:20 2009 +0200 d3d10: Implement ID3D10EffectConstantBuffer::GetAnnotationByIndex(). --- dlls/d3d10/effect.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index cffd645..ee2fa65 100644 --- a/dlls/d3d10/effect.c +++ b/dlls/d3d10/effect.c @@ -1906,9 +1906,22 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetDesc(ID3D10Effe static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByIndex( 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(
participants (1)
-
Alexandre Julliard