ID3D11ClassInstance::GetInstanceName Method

Gets the instance name of the current HLSL class.

Syntax

public:
void GetInstanceName(
         LPSTR pInstanceName,
         SIZE_T *pBufferLength
)  

Parameters

pInstanceName
Type: LPSTRĀ 

[out, optional] The instance name of the current HLSL class.

pBufferLength
Type: SIZE_TĀ *

[in, out] The length of the pInstanceName parameter.

Return value

None.

Remarks

GetInstanceName will return a valid name only for instances acquired using ID3D11ClassLinkage::GetClassInstance.

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

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