Rico Schüller : d3dcompiler: Implement ID3D11ShaderReflectionType::GetMemberTypeByIndex().
Alexandre Julliard
julliard at winehq.org
Tue Mar 1 11:07:15 CST 2011
Module: wine
Branch: master
Commit: 3ca651cce149d3c2d178a1c5ae3cf86e005b3415
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3ca651cce149d3c2d178a1c5ae3cf86e005b3415
Author: Rico Schüller <kgbricola at web.de>
Date: Mon Feb 28 19:47:28 2011 +0100
d3dcompiler: Implement ID3D11ShaderReflectionType::GetMemberTypeByIndex().
---
dlls/d3dcompiler_43/reflection.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c
index 5c063b9..7381957 100644
--- a/dlls/d3dcompiler_43/reflection.c
+++ b/dlls/d3dcompiler_43/reflection.c
@@ -801,9 +801,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetDesc(
static ID3D11ShaderReflectionType * STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetMemberTypeByIndex(
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 (index >= This->desc.Members)
+ {
+ WARN("Invalid index specified\n");
+ return &null_type.ID3D11ShaderReflectionType_iface;
+ }
+
+ return &This->members[index].type->ID3D11ShaderReflectionType_iface;
}
static ID3D11ShaderReflectionType * STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetMemberTypeByName(
More information about the wine-cvs
mailing list