Sets a meaningful name for the current resource that is derived from ID3D11DeviceChild.
public:
HRESULT SetName(
LPCWSTR pName
)
pName
Type: LPCWSTRÂ
[in] The meaningful human-readable name to use.
Type: HRESULTÂ
This method returns one of the Direct3D 11 return codes.
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.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.