Gets a description of the current HLSL class.
public:
void GetDesc(
D3D11_CLASS_INSTANCE_DESC *pDesc
)
pDesc
Type: D3D11_CLASS_INSTANCE_DESC *
[out] A pointer to a D3D11_CLASS_INSTANCE_DESC structure that describes the current HLSL class.
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.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).