Header menu logo Mibo

RenderTargetPool Type

Default implementation of IRenderTargetPool using a dictionary keyed by (width, height) dimensions. Stores targets in per-dimension queues for FIFO reuse.

Dispose the pool when the application shuts down to dispose all pooled targets. Idle targets kept per dimension are capped by maxIdlePerDimension so that repeated window resizes (which produce many distinct dimensions) don't retain GPU memory for sizes that may never be requested again. Excess idle targets are disposed at IRenderTargetPool.ReleaseAll time.

Constructors

Constructor Description

RenderTargetPool(gd, ?maxIdlePerDimension)

Full Usage: RenderTargetPool(gd, ?maxIdlePerDimension)

Parameters:
Returns: RenderTargetPool
gd : GraphicsDevice
?maxIdlePerDimension : int
Returns: RenderTargetPool

Type something to start searching.