ID3D11DeviceChild::SetPrivateDataInterfaceGraphics Method

Associates an IGraphicsUnknown-derived interface with this device child and associate that interface with an application-defined guid.

Syntax

public:
HRESULT SetPrivateDataInterfaceGraphics(
         REFGUID guid,
         const IGraphicsUnknown *pData
)  

Parameters

guid
Type: REFGUID 

[in] Guid associated with the interface.

pData
Type: IGraphicsUnknown *

[in, optional] Pointer to an IGraphicsUnknown-derived interface to be associated with the device child.

Return value

Type: HRESULT 

One of the Direct3D 11 return codes.

Remarks

When this method is called, ::addref() will be called on the IGraphicsUnknown-derived interface.

When the device child is destroyed, ::release() will be called on the IGraphicsUnknown-derived interface.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

ID3D11DeviceChild

ID3D11DeviceChild Members