ID3D11ShaderReflectionVariable::GetInterfaceSlot Method

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

Syntax

public:
UINT GetInterfaceSlot(
         UINT uArrayIndex
)  

Parameters

uArrayIndex
Type: UINT 

[in] 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 an 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

Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11ShaderReflectionVariable

ID3D11ShaderReflectionVariable Members