d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDesc().

This commit is contained in:
Rico Schüller 2011-02-10 20:06:07 +01:00 committed by Alexandre Julliard
parent 5ad824a178
commit 162233eb63
1 changed files with 12 additions and 2 deletions

View File

@ -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(