Gets the corresponding interface slot for a variable that represents an interface pointer.
public:
UINT GetInterfaceSlot(
UINT uArrayIndex
)
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.
Type: UINT
Returns the index of the interface in the interface array.
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.
Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).