ID3D11ShaderReflectionConstantBuffer interface (d3d11shader.h)

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

Methods

The ID3D11ShaderReflectionConstantBuffer interface has these methods.

 
ID3D11ShaderReflectionConstantBuffer::GetDesc

Get a constant-buffer description. (ID3D11ShaderReflectionConstantBuffer.GetDesc)
ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex

The ID3D11ShaderReflectionConstantBuffer::GetVariableByIndex (d3d11shader.h) method gets a shader-reflection variable by index.
ID3D11ShaderReflectionConstantBuffer::GetVariableByName

Get a shader-reflection variable by name. (ID3D11ShaderReflectionConstantBuffer.GetVariableByName)

Remarks

To create a constant-buffer interface, call ID3D11ShaderReflection::GetConstantBufferByIndex or ID3D11ShaderReflection::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
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11shader.h

See also

Shader Interfaces