Get a constant buffer by index.
public:
ID3D11ShaderReflectionConstantBuffer* GetConstantBufferByIndex(
UINT Index
)
Index
Type: UINTÂ
[in] Zero-based index.
Type: ID3D11ShaderReflectionConstantBuffer *
A pointer to a constant buffer (see ID3D11ShaderReflectionConstantBuffer Interface).
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.
This method’s interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.
Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).