Header menu logo Mibo.Raylib

IRenderTargetPool Type

Provides pooled render textures to avoid per-frame allocation and disposal of RenderTexture2D resources.

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

Instance members

Instance member Description

this.Acquire

Full Usage: this.Acquire

Parameters:
    width : int
    height : int

Returns: RenderTexture2D A render texture with the specified width and height.
Modifiers: abstract

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

width : int
height : int
Returns: RenderTexture2D

A render texture with the specified width and height.

this.ReleaseAll

Full Usage: this.ReleaseAll

Modifiers: abstract

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

Type something to start searching.