IDXGIObject::SetPrivateDataInterfaceGraphics Method

Sets an interface in the object’s private data, for graphics. Associates an IGraphicsUnknown-derived interface with this IDXGIObject and associates that interface with an application-defined GUID.

Syntax

public:
HRESULT SetPrivateDataInterfaceGraphics(
         REFGUID Name,
         const IGraphicsUnknown *pUnknown
)  

Parameters

Name
Type: REFGUID 

[in] The GUID associated with this IDXGIObject instance.

pUnknown
Type: IGraphicsUnknown *

[in] The interface to be associated with the IDXGIObject, as a pointer to IGraphicsUnknown.

Return value

Type: HRESULT 

A DXGI_ERROR code or one of the Direct3D 11 return codes.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

IDXGIObject

IDXGIObject Members