Connor McAdams : d3dcompiler: Implement ID3D10ShaderReflectionVariable GetType() method.

Alexandre Julliard julliard at winehq.org
Thu Nov 14 15:51:28 CST 2019


Module: wine
Branch: master
Commit: c2325190764e69a723e46deb79e8c7502ee8efba
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c2325190764e69a723e46deb79e8c7502ee8efba

Author: Connor McAdams <conmanx360 at gmail.com>
Date:   Thu Nov 14 20:59:56 2019 +0100

d3dcompiler: Implement ID3D10ShaderReflectionVariable GetType() method.

Signed-off-by: Connor McAdams <conmanx360 at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dcompiler_43/reflection.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c
index 93819534e6..34a9984768 100644
--- a/dlls/d3dcompiler_43/reflection.c
+++ b/dlls/d3dcompiler_43/reflection.c
@@ -2133,9 +2133,11 @@ static HRESULT STDMETHODCALLTYPE d3d10_shader_reflection_variable_GetDesc(ID3D10
 static ID3D10ShaderReflectionType * STDMETHODCALLTYPE d3d10_shader_reflection_variable_GetType(
         ID3D10ShaderReflectionVariable *iface)
 {
-    FIXME("iface %p stub!\n", iface);
+    struct d3dcompiler_shader_reflection_variable *var = impl_from_ID3D10ShaderReflectionVariable(iface);
 
-    return &null_type.ID3D10ShaderReflectionType_iface;
+    TRACE("iface %p.\n", iface);
+
+    return &var->type->ID3D10ShaderReflectionType_iface;
 }
 
 static const struct ID3D10ShaderReflectionVariableVtbl d3d10_shader_reflection_variable_vtbl =




More information about the wine-cvs mailing list