Skip to content

@orillusion/core


Class: TransientBufferPool ​

Defined in: src/gfx/renderJob/graph/transient/TransientBufferPool.ts:43

Physical pool for transient graph buffers. Mirrors TransientTexturePool but buckets by (roundedSize, usage) and reuses GPUBufferBase wrappers by calling resizeBuffer(size) when the existing capacity is short.

Phase 0 has no first-party consumers of b.declareBuffer — the pool exists so the new API surface is symmetric with textures and so future passes (GPU culling scratch, transient indirect args) can adopt it without further engine work.

Constructors ​

Constructor ​

new TransientBufferPool(ctx): TransientBufferPool

Defined in: src/gfx/renderJob/graph/transient/TransientBufferPool.ts:50

Parameters ​

ctx ​

Context3D

Returns ​

TransientBufferPool

Methods ​

assign() ​

assign(lifetimes): TransientBufferAssignment

Defined in: src/gfx/renderJob/graph/transient/TransientBufferPool.ts:54

Parameters ​

lifetimes ​

readonly ResourceLifetime[]

Returns ​

TransientBufferAssignment


dispose() ​

dispose(): void

Defined in: src/gfx/renderJob/graph/transient/TransientBufferPool.ts:149

Returns ​

void


stats() ​

stats(): object

Defined in: src/gfx/renderJob/graph/transient/TransientBufferPool.ts:159

Returns ​

object

currentBytes ​

currentBytes: number

peakBytes ​

peakBytes: number

bucketCount ​

bucketCount: number

slotCount ​

slotCount: number