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
Public Interface IDirect3DSurface 
    Inherits Object, IDirect3DSurface, IDisposable
public interface class IDirect3DSurface : Object^, 
    IDirect3DSurface, IClosable

Attributes

[Version]

Members

The IDirect3DSurface interface has these types of members:

  • Properties

Properties

The IDirect3DSurface interface has these properties.

Property Access type Description

Description

Read-only Gets 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