Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Gets a constant buffer by index.
Syntax
ID3D12ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
[in] UINT Index
);
Parameters
[in] Index
Type: UINT
Zero-based index.
Return value
Type: ID3D12ShaderReflectionConstantBuffer*
A pointer to a constant buffer (see ID3D12ShaderReflectionConstantBuffer Interface).
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.
This method's interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | d3d12shader.h |