ID3D12ShaderReflectionVariable::GetInterfaceSlot method (d3d12shader.h)

Gets the corresponding interface slot for a variable that represents an interface pointer.

Syntax

UINT GetInterfaceSlot(
  [in] UINT uArrayIndex
);

Parameters

[in] uArrayIndex

Type: UINT

The index of the array element to get the slot number for. For a non-array variable this value will be zero.

Return value

Type: UINT

Returns the index of the interface in the interface array.

Remarks

GetInterfaceSlot gets the corresponding slot in a dynamic linkage array for an interface instance. The returned slot number is used to set an interface instance to a particular class instance. See the HLSL Interfaces and Classes overview for additional information.

This method's interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.

Requirements

Requirement Value
Target Platform Windows
Header d3d12shader.h

See also

ID3D12ShaderReflectionVariable