Rico Schüller : d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDesc().
Alexandre Julliard
julliard at winehq.org
Mon Feb 14 10:02:04 CST 2011
Module: wine
Branch: master
Commit: 162233eb6384b4c553585217ec620c4ba424a666
URL: http://source.winehq.org/git/wine.git/?a=commit;h=162233eb6384b4c553585217ec620c4ba424a666
Author: Rico Schüller <kgbricola at web.de>
Date: Thu Feb 10 20:06:07 2011 +0100
d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDesc().
---
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 9677075..f3646e8 100644
--- a/dlls/d3dcompiler_43/reflection.c
+++ b/dlls/d3dcompiler_43/reflection.c
@@ -216,9 +216,19 @@ static struct ID3D11ShaderReflectionConstantBuffer * STDMETHODCALLTYPE d3dcompil
static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetResourceBindingDesc(
ID3D11ShaderReflection *iface, UINT index, D3D11_SHADER_INPUT_BIND_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 || index >= This->bound_resource_count)
+ {
+ WARN("Invalid argument specified\n");
+ return E_INVALIDARG;
+ }
+
+ *desc = This->bound_resources[index];
+
+ return S_OK;
}
static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetInputParameterDesc(
More information about the wine-cvs
mailing list