Table of Contents

Class PingPongColorBuffers

Namespace
HelixToolkit.SharpDX.Render
Assembly
HelixToolkit.SharpDX.dll
public sealed class PingPongColorBuffers : DisposeObject, IDisposable
Inheritance
PingPongColorBuffers
Implements
Inherited Members

Constructors

PingPongColorBuffers(Format, int, int, IDevice3DResources)

Initializes a new instance of the PingPongColorBuffers class.

public PingPongColorBuffers(Format textureFormat, int width, int height, IDevice3DResources deviceRes)

Parameters

textureFormat Format

The texture format.

width int

The width.

height int

The height.

deviceRes IDevice3DResources

The device resource.

Properties

CurrentRTV

Gets the current RenderTargetView.

public ShaderResourceViewProxy? CurrentRTV { get; }

Property Value

ShaderResourceViewProxy

The current RTV.

CurrentSRV

Gets the current ShaderResourceViewProxy.

public ShaderResourceViewProxy? CurrentSRV { get; }

Property Value

ShaderResourceViewProxy

The current SRV.

CurrentTexture

public Resource? CurrentTexture { get; }

Property Value

Resource

Height

public int Height { get; }

Property Value

int

Initialized

public bool Initialized { get; }

Property Value

bool

NextRTV

Gets the next RTV.

public ShaderResourceViewProxy? NextRTV { get; }

Property Value

ShaderResourceViewProxy

The next RTV.

NextSRV

Gets the next SRV.

public ShaderResourceViewProxy? NextSRV { get; }

Property Value

ShaderResourceViewProxy

The next SRV.

Width

public int Width { get; }

Property Value

int

Methods

Initialize()

Initializes this instance.

public void Initialize()

OnDispose(bool)

Disposes of object resources.

protected override void OnDispose(bool disposeManagedResources)

Parameters

disposeManagedResources bool

If true, managed resources should be disposed of in addition to unmanaged resources.

SwapTargets()

Swaps the targets.

public void SwapTargets()