GetDXGIInterface (IDirect3DDevice^, DXGIType**) function

template<typename DXGI_TYPE> HRESULT GetDXGIInterface(IDirect3DDevice^, DXGI_TYPE**) function

Retrieves a DXGI interface from an IDirect3DDevice instance.

Syntax


HRESULT GetDXGIInterface(
   IDirect3DDevice^ device,
   DXGI_TYPE        **dxgi
);

Parameters

device

Type: IDirect3DDevice^

The IDirect3DDevice instance to retrieve the DXGI interface from.

dxgi

Type: DXGI_TYPE**

On return contains the retrieved DXGI interface.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

Windows.Graphics.DirectX.Direct3D11.interop.h

Library

D3D11.lib

DLL

D3D11.dll

 

 

Show:
© 2017 Microsoft