Skip to content

Documentation / scene / RGTextureAffinityCache

Class: RGTextureAffinityCache<TTexture>

Defined in: libs/scene/src/render/rendergraph/texture_affinity_cache.ts:10

Remembers transient texture identities across executions without owning them.

Type Parameters

TTexture

TTexture = BaseTexture

Constructors

Constructor

new RGTextureAffinityCache<TTexture>(): RGTextureAffinityCache<TTexture>

Returns

RGTextureAffinityCache<TTexture>

Accessors

size

Get Signature

get size(): number

Defined in: libs/scene/src/render/rendergraph/texture_affinity_cache.ts:15

Number of logical resources remembered from the last successful execution.

Returns

number

Methods

clear()

clear(): void

Defined in: libs/scene/src/render/rendergraph/texture_affinity_cache.ts:20

Remove all remembered allocations without releasing the referenced textures.

Returns

void

Released under the MIT License.