GetDXGIInterface (IDirect3DSurface^, DXGIType**) function

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

Retrieves a DXGI interface from an IDirect3DSurface instance.

Syntax


HRESULT GetDXGIInterface(
   IDirect3DSurface^ surface,
   DXGI_TYPE         **dxgi
);

Parameters

surface

Type: IDirect3DSurface^

The IDirect3DSurface to get the DXGI interface from.

dxgi

Type: DXGI_TYPE**

On return will contain 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