CreateDirect3DSurface function

CreateDirect3DSurface function

Creates an instance of IDirect3DSurface from an IDXGISurface.

Syntax


IDirect3DSurface CreateDirect3DSurface(
  _In_ IDXGISurface *dxgiSurface
);

Parameters

dxgiSurface [in]

The IDXGISurface to create the IDirect3D11Surface from.

Return value

Returns the created IDirect3DSurface instance.

Remarks

If you are using C++/CX you should use this function, CreateDirect3DSurface. If you are using WRL you should use the CreateDirect3D11SurfaceFromDXGISurface function instead.

Requirements

Header

Windows.Graphics.DirectX.Direct3D11.interop.h

Library

D3D11.lib

DLL

D3D11.dll

 

 

Show:
© 2017 Microsoft