Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Get a constant buffer by index.
Syntax
ID3D10ShaderReflectionConstantBuffer * GetConstantBufferByIndex(
[in] UINT Index
);
Parameters
[in] Index
Type: UINT
Zero-based index.
Return value
Type: ID3D10ShaderReflectionConstantBuffer*
A pointer to a constant buffer (see ID3D10ShaderReflectionConstantBuffer 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.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | d3d10shader.h |