IDirect3DSurface interface

[This documentation is preliminary and is subject to change.]

This represents an IDXGISurface and can be used to interop between Windows Runtime components that need to exchange IDXGISurface references.

Syntax


public interface IDirect3DSurface : object, 
    IDirect3DSurface, IDisposable

Attributes

[Version]

Members

The IDirect3DSurface interface has these types of members:

Properties

The IDirect3DSurface interface has these properties.

PropertyAccess typeDescription

Description

Read-onlyGets a Direct3DSurfaceDescription describing the surface.

 

Remarks

To move back and forth between IDirect3DSurface and IDXGISurface, use the CreateDirect3DSurface and GetDXGIInterface(IDirect3DSurface^, DXGIType**) functions.

Examples

First include the necessary headers and namespaces:


#include <Windows.Graphics.DirectX.Direct3D11.interop.h>
#include <dxgi.h>
using namespace Windows::Graphics::DirectX::Direct3D11;
using namespace Microsoft::WRL;

To get the native DirectX surface that is wrapped by a Direct3DSurface:


IDirect3DSurface^ d3dSurface = ...;  
ComPtr<IDXGISurface> nativeSurface;
HRESULT hr = GetDXGIInterface(d3dSurface, nativeSurface.GetAddressOf());

To create a new Direct3DSurface object wrapping a native DirectX surface:


ComPtr<IDXGISurface> nativeSurface = ...;
IDirect3DSurface^ d3dSurface = CreateDirect3DSurface(nativeSurface.Get());


Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

None supported

Namespace

Windows.Graphics.DirectX.Direct3D11
Windows::Graphics::DirectX::Direct3D11 [C++]

Metadata

Windows.winmd

See also

Object
IClosable

 

 

Show: