Module: wine Branch: master Commit: f9696983cf64587e702f0cb72e671acd46ef33bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9696983cf64587e702f0cb72e...
Author: Rico Schüller kgbricola@web.de Date: Mon Feb 28 19:47:34 2011 +0100
d3dcompiler: Implement ID3D11ShaderReflectionType::GetMemberTypeName().
---
dlls/d3dcompiler_43/reflection.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c index c0ade43..130c1e4 100644 --- a/dlls/d3dcompiler_43/reflection.c +++ b/dlls/d3dcompiler_43/reflection.c @@ -847,9 +847,23 @@ static ID3D11ShaderReflectionType * STDMETHODCALLTYPE d3dcompiler_shader_reflect static LPCSTR STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetMemberTypeName( ID3D11ShaderReflectionType *iface, UINT index) { - FIXME("iface %p, index %u stub!\n", iface, index); + struct d3dcompiler_shader_reflection_type *This = impl_from_ID3D11ShaderReflectionType(iface);
- return NULL; + TRACE("iface %p, index %u\n", iface, index); + + if (This == &null_type) + { + WARN("Null type specified\n"); + return "$Invalid"; + } + + if (index >= This->desc.Members) + { + WARN("Invalid index specified\n"); + return NULL; + } + + return This->members[index].name; }
static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_IsEqual(