ID3D12Object::SetPrivateDataInterface method

Associates an IUnknown-derived interface with the device object and associates that interface with an application-defined GUID.

Syntax

HRESULT SetPrivateDataInterface(
  REFGUID        guid,
  const IUnknown *pData
);

Parameters

guid

Type: REFGUID

The GUID to associate with the interface.

pData

Type: const IUnknown*

A pointer to the IUnknown-derived interface to be associated with the device object.

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