ID3D12ShaderReflectionVariable interface (d3d12shader.h)

This shader-reflection interface provides access to a variable.

Methods

The ID3D12ShaderReflectionVariable interface has these methods.

 
ID3D12ShaderReflectionVariable::GetBuffer

Returns the ID3D12ShaderReflectionConstantBuffer of the present ID3D12ShaderReflectionVariable.
ID3D12ShaderReflectionVariable::GetDesc

Gets a shader-variable description.
ID3D12ShaderReflectionVariable::GetInterfaceSlot

Gets the corresponding interface slot for a variable that represents an interface pointer. (ID3D12ShaderReflectionVariable.GetInterfaceSlot)
ID3D12ShaderReflectionVariable::GetType

Gets a shader-variable type.

Remarks

To get a shader-reflection-variable interface, call a method like ID3D12ShaderReflection::GetVariableByName. 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