ID3D11ClassInstance::GetDesc Method

Gets a description of the current HLSL class.

Syntax

public:
void GetDesc(
         D3D11_CLASS_INSTANCE_DESC *pDesc
)  

Parameters

pDesc
Type: D3D11_CLASS_INSTANCE_DESC *

[out] A pointer to a D3D11_CLASS_INSTANCE_DESC structure that describes the current HLSL class.

Return value

None.

Remarks

For more information about using the ID3D11ClassInstance interface, see Dynamic Linking.

An instance is not restricted to being used for a single type in a single shader. An instance is flexible and can be used for any shader that used the same type name or instance name when the instance was generated.

An instance does not replace the importance of reflection for a particular shader since a gotten instance will not know its slot location and a created instance only specifies a type name.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

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

See also

ID3D11ClassInstance

ID3D11ClassInstance Members