ID3D11DeviceChild::SetName Method

Sets a meaningful name for the current resource that is derived from ID3D11DeviceChild.

Syntax

public:
HRESULT SetName(
         LPCWSTR pName
)  

Parameters

pName
Type: LPCWSTR 

[in] The meaningful human-readable name to use.

Return value

Type: HRESULT 

This method returns one of the Direct3D 11 return codes.

Remarks

This function is used to associate a meaningful human-readable name with the current Direct3D11 object (a resource) that is derived from ID3D11DeviceChild. These human-readable names will appear in PIX where appropriate.

A copy of the name string is made in the debug memory pool, so that the amount of memory available to the application is not affected.

This method supersedes ID3D11DeviceChild::SetPrivateData; use SetName instead of SetPrivateData.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

ID3D11DeviceChild

ID3D11DeviceChild Members