ID3D11ShaderReflection::GetResourceBindingDesc Method

Get a description of how a resource is bound to a shader.

Syntax

public:
HRESULT GetResourceBindingDesc(
         UINT ResourceIndex,
         D3D11_SHADER_INPUT_BIND_DESC *pDesc
)  

Parameters

ResourceIndex
Type: UINT 

[in] A zero-based resource index.

pDesc
Type: D3D11_SHADER_INPUT_BIND_DESC *

[out] A pointer to an input-binding description. See D3D11_SHADER_INPUT_BIND_DESC.

Return value

Type: HRESULT 

Returns one of the following Direct3D 11 return codes.

Remarks

A shader consists of executable code (the compiled HLSL functions) and a set of resources that supply the shader with input data. GetResourceBindingDesc gets information about how one resource in the set is bound as an input to the shader. The ResourceIndex parameter specifies the index for the resource.

This method’s interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.

Requirements

Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11ShaderReflection

ID3D11ShaderReflection Members