ID3D10ShaderReflection::GetResourceBindingDesc method (d3d10shader.h)

Get a description of the resources bound to a shader.

Syntax

HRESULT GetResourceBindingDesc(
  [in] UINT                         ResourceIndex,
  [in] D3D10_SHADER_INPUT_BIND_DESC *pDesc
);

Parameters

[in] ResourceIndex

Type: UINT

A zero-based resource index.

[in] pDesc

Type: D3D10_SHADER_INPUT_BIND_DESC*

A pointer to an input-binding description. See D3D10_SHADER_INPUT_BIND_DESC.

Return value

Type: HRESULT

Returns one of the following Direct3D 10 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. This API gets a list of the resources that are bound as inputs to the shader.

Requirements

Requirement Value
Target Platform Windows
Header d3d10shader.h

See also

ID3D10ShaderReflection Interface