Rico Schüller : d3dcompiler: Implement ID3D11ShaderReflectionType::GetDesc().
Alexandre Julliard
julliard at winehq.org
Wed Feb 23 13:01:53 CST 2011
Module: wine
Branch: master
Commit: c647243ed9dec44fce834d3d8d75c46d498707f9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c647243ed9dec44fce834d3d8d75c46d498707f9
Author: Rico Schüller <kgbricola at web.de>
Date: Tue Feb 22 21:01:19 2011 +0100
d3dcompiler: Implement ID3D11ShaderReflectionType::GetDesc().
---
dlls/d3dcompiler_43/reflection.c | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c
index b751725..3d97603 100644
--- a/dlls/d3dcompiler_43/reflection.c
+++ b/dlls/d3dcompiler_43/reflection.c
@@ -745,12 +745,33 @@ const struct ID3D11ShaderReflectionVariableVtbl d3dcompiler_shader_reflection_va
/* ID3D11ShaderReflectionType methods */
+static inline struct d3dcompiler_shader_reflection_type *impl_from_ID3D11ShaderReflectionType(ID3D11ShaderReflectionType *iface)
+{
+ return CONTAINING_RECORD(iface, struct d3dcompiler_shader_reflection_type, ID3D11ShaderReflectionType_iface);
+}
+
static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetDesc(
ID3D11ShaderReflectionType *iface, D3D11_SHADER_TYPE_DESC *desc)
{
- FIXME("iface %p, desc %p stub!\n", iface, desc);
+ struct d3dcompiler_shader_reflection_type *This = impl_from_ID3D11ShaderReflectionType(iface);
- return E_NOTIMPL;
+ TRACE("iface %p, desc %p\n", iface, desc);
+
+ if (This == &null_type)
+ {
+ WARN("Null type specified\n");
+ return E_FAIL;
+ }
+
+ if (!desc)
+ {
+ WARN("Invalid argument specified\n");
+ return E_FAIL;
+ }
+
+ *desc = This->desc;
+
+ return S_OK;
}
static ID3D11ShaderReflectionType * STDMETHODCALLTYPE d3dcompiler_shader_reflection_type_GetMemberTypeByIndex(
More information about the wine-cvs
mailing list