ID3D12FunctionReflection::GetConstantBufferByIndex method (d3d12shader.h)

Gets a constant buffer by index for a function.

Syntax

ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
  [in] UINT BufferIndex
);

Parameters

[in] BufferIndex

Type: UINT

Zero-based index.

Return value

Type: ID3D12ShaderReflectionConstantBuffer*

A pointer to a ID3D12ShaderReflectionConstantBuffer interface that represents the constant buffer.

Remarks

A constant buffer supplies either scalar constants or texture constants to a shader. A shader can use one or more constant buffers. For best performance, separate constants into buffers based on the frequency they are updated.

Requirements

Requirement Value
Target Platform Windows
Header d3d12shader.h

See also

ID3D12FunctionReflection