Header menu logo Mibo

IRenderTargetPool Type

Provides pooled render targets to avoid per-frame allocation and disposal of RenderTarget2D resources.

Acquired targets remain in use until IRenderTargetPool.ReleaseAll is called, typically once per frame. Targets are keyed by dimensions and reused across frames without being disposed, avoiding GPU allocation overhead.

Instance members

Instance member Description

this.Acquire

Full Usage: this.Acquire

Parameters:
    width : int
    height : int

Returns: RenderTarget2D A render target with the specified width and height.
Modifiers: abstract

Acquires a render target matching the given dimensions. Reuses a previously released target if available, otherwise creates a new one.

width : int
height : int
Returns: RenderTarget2D

A render target with the specified width and height.

this.ReleaseAll

Full Usage: this.ReleaseAll

Modifiers: abstract

Returns all currently held targets to the pool. Call once per frame after rendering is complete. Targets are retained for future reuse.

Type something to start searching.