ID3D12Object::GetPrivateData method

Gets application-defined data from a device object.

Syntax

HRESULT GetPrivateData(
  REFGUID guid,
  UINT    *pDataSize,
  void    *pData
);

Parameters

guid

Type: REFGUID

The GUID that is associated with the data.

pDataSize

Type: UINT*

A pointer to a variable that on input contains the size, in bytes, of the buffer that pData points to, and on output contains the size, in bytes, of the amount of data that GetPrivateData retrieved.

pData

Type: void*

A pointer to a memory block that receives the data from the device object if pDataSize points to a value that specifies a buffer large enough to hold the data.

Return Value

Type: HRESULT

This method returns one of the Direct3D 12 Return Codes.

Requirements

   
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See Also

ID3D12Object