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
textureFormatFormatThe texture format.
widthintThe width.
heightintThe height.
deviceResIDevice3DResourcesThe 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
Initialized
public bool Initialized { get; }
Property Value
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
Methods
Initialize()
Initializes this instance.
public void Initialize()
OnDispose(bool)
Disposes of object resources.
protected override void OnDispose(bool disposeManagedResources)
Parameters
disposeManagedResourcesboolIf true, managed resources should be disposed of in addition to unmanaged resources.
SwapTargets()
Swaps the targets.
public void SwapTargets()