ID3D11Device::SetPrivateDataInterface Method

Associate an IUnknown-derived interface with this device child and associate that interface with an application-defined guid.

Syntax

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

Parameter

  • guid
    Typ: REFGUID

    Guid associated with the interface.

  • pData
    Typ: const IUnknown*

    Pointer to an IUnknown-derived interface to be associated with the device child.

Rückgabewert

Typ: HRESULT

This method returns one of the following Direct3D 11 Return Codes.

Anforderungen

Header

D3D11.h

Bibliothek

D3D11.lib