Table of Contents

Class DX11SwapChainRenderBufferProxy

Namespace
HelixToolkit.SharpDX.Render
Assembly
HelixToolkit.SharpDX.dll
public class DX11SwapChainRenderBufferProxy : DX11RenderBufferProxyBase, IDisposable
Inheritance
DX11SwapChainRenderBufferProxy
Implements
Inherited Members

Constructors

DX11SwapChainRenderBufferProxy(nint, IDeviceResources)

Initializes a new instance of the DX11SwapChainRenderBufferProxy class.

public DX11SwapChainRenderBufferProxy(nint surfacePointer, IDeviceResources deviceResource)

Parameters

surfacePointer nint

The surface pointer.

deviceResource IDeviceResources

DX11SwapChainRenderBufferProxy(nint, IDeviceResources, bool)

Initializes a new instance of the DX11SwapChainRenderBufferProxy class.

public DX11SwapChainRenderBufferProxy(nint surfacePointer, IDeviceResources deviceResource, bool useDepthStencilBuffer)

Parameters

surfacePointer nint

The surface pointer.

deviceResource IDeviceResources
useDepthStencilBuffer bool

Fields

surfacePtr

The surface pointer

protected readonly nint surfacePtr

Field Value

nint

Properties

SwapChain

Gets the swap chain.

public SwapChain1? SwapChain { get; }

Property Value

SwapChain1

The swap chain.

Methods

CreateSwapChainDescription()

Creates the swap chain description.

protected virtual SwapChainDescription1 CreateSwapChainDescription()

Returns

SwapChainDescription1

A swap chain description

Remarks

This method can be overloaded in order to modify default parameters.

DisposeAndClear()

Must release swapchain at last after all its created resources have been released.

public void DisposeAndClear()

OnCreateBackBuffer(int, int)

Called when [create render target and depth buffers].

protected override ShaderResourceViewProxy? OnCreateBackBuffer(int width, int height)

Parameters

width int

The width.

height int

The height.

Returns

ShaderResourceViewProxy

OnDispose(bool)

Releases unmanaged and - optionally - managed resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Present()

Presents this instance.

public override bool Present()

Returns

bool