Table of Contents

Class DX11SwapChainCompositionRenderBufferProxy

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

Constructors

DX11SwapChainCompositionRenderBufferProxy(IDeviceResources)

Initializes a new instance of the DX11SwapChainRenderBufferProxy class.

public DX11SwapChainCompositionRenderBufferProxy(IDeviceResources deviceResource)

Parameters

deviceResource IDeviceResources

DX11SwapChainCompositionRenderBufferProxy(IDeviceResources, bool)

Initializes a new instance of the DX11SwapChainRenderBufferProxy class.

public DX11SwapChainCompositionRenderBufferProxy(IDeviceResources deviceResource, bool useDepthStencilBuffer)

Parameters

deviceResource IDeviceResources
useDepthStencilBuffer bool

Properties

SwapChain

Gets the swap chain.

public SwapChain2? SwapChain { get; }

Property Value

SwapChain2

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