interop::CreateDirect3DSurface function (windows.graphics.directx.direct3d11.interop.h)

Creates an instance of IDirect3DSurface from an IDXGISurface.

Syntax

IDirect3DSurface ^ CreateDirect3DSurface(
  [in] IDXGISurface *dxgiSurface
);

Parameters

[in] dxgiSurface

Type: IDXGISurface*

The IDXGISurface to create the IDirect3D11Surface from.

Return value

Type: IDirect3DSurface^

Returns the created IDirect3DSurface instance.

Remarks

While we recommend C++/WinRT, if you're using C++/CX, then you should use this function. Otherwise, you should use the CreateDirect3D11SurfaceFromDXGISurface function instead.

Requirements

   
Target Platform Windows
Header windows.graphics.directx.direct3d11.interop.h
Library D3D11.lib
DLL D3D11.dll