[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: [PATCH 2/5] d3dcompiler: Implement
From: Rico Schüller <kgbricola () web ! de>
Date: 2011-02-28 18:47:28
Message-ID: 4D6BEDC0.70201 () web ! de
[Download RAW message or body]
---
dlls/d3dcompiler_43/reflection.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
["0002-d3dcompiler-Implement-ID3D11ShaderReflectionType-GetMe.txt" (text/x-patch)]
diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c
index cc074dc..33d87f0 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(
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic