Rico Schüller : d3dcompiler: Implement ID3D11ShaderReflection::GetOutputParameterDesc().
Alexandre Julliard
julliard at winehq.org
Wed Dec 22 10:57:41 CST 2010
Module: wine
Branch: master
Commit: bf1065ea6dd9f349f8898304a83fa51ec46ec7e7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf1065ea6dd9f349f8898304a83fa51ec46ec7e7
Author: Rico Schüller <kgbricola at web.de>
Date: Wed Dec 22 12:16:12 2010 +0100
d3dcompiler: Implement ID3D11ShaderReflection::GetOutputParameterDesc().
---
dlls/d3dcompiler_43/reflection.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c
index a7aef62..ddeb8d5 100644
--- a/dlls/d3dcompiler_43/reflection.c
+++ b/dlls/d3dcompiler_43/reflection.c
@@ -161,9 +161,19 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetInputParameter
static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetOutputParameterDesc(
ID3D11ShaderReflection *iface, UINT index, D3D11_SIGNATURE_PARAMETER_DESC *desc)
{
- FIXME("iface %p, index %u, desc %p stub!\n", iface, index, desc);
+ struct d3dcompiler_shader_reflection *This = impl_from_ID3D11ShaderReflection(iface);
- return E_NOTIMPL;
+ TRACE("iface %p, index %u, desc %p\n", iface, index, desc);
+
+ if (!desc || !This->osgn || index >= This->osgn->element_count)
+ {
+ WARN("Invalid argument specified\n");
+ return E_INVALIDARG;
+ }
+
+ *desc = This->osgn->elements[index];
+
+ return S_OK;
}
static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetPatchConstantParameterDesc(
More information about the wine-cvs
mailing list