Skip to content

Class TransientPool

Namespace: Apogee.Rendering.Graph
Assembly: Apogee.Rendering.dll

The images and buffers graphs allocate, kept between frames so that a steady-state frame allocates nothing. There is one set per frame in flight (a resource is only reused by the frame slot that used it before, once the GPU has finished with it), and one that goes unused for a while is freed.

public sealed class TransientPool : IDisposable

Inheritance

object ← TransientPool

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

TransientPool(GraphicsDevice, int)

public TransientPool(GraphicsDevice device, int framesInFlight = 2)

Parameters

device GraphicsDevice

framesInFlight int

Properties

BufferCount

public int BufferCount { get; }

Property Value

int

ImageCount

Images and buffers currently alive across all frame slots.

public int ImageCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()