ID3D12ShaderReflectionConstantBuffer interface (d3d12shader.h)

This shader-reflection interface provides access to a constant buffer.

Methods

The ID3D12ShaderReflectionConstantBuffer interface has these methods.

 
ID3D12ShaderReflectionConstantBuffer::GetDesc

Gets a constant-buffer description.
ID3D12ShaderReflectionConstantBuffer::GetVariableByIndex

Gets a shader-reflection variable by index.
ID3D12ShaderReflectionConstantBuffer::GetVariableByName

Gets a shader-reflection variable by name.

Remarks

To create a constant-buffer interface, call ID3D12ShaderReflection::GetConstantBufferByIndex or ID3D12ShaderReflection::GetConstantBufferByName. This isn't a COM interface, so you don't need to worry about reference counts or releasing the interface when you're done with it.

Requirements

Requirement Value
Target Platform Windows
Header d3d12shader.h

See also

Shader Interfaces