Class: PipelinePool
Defined in: src/gfx/graphics/webGpu/PipelinePool.ts:7
Per-context cache of shared render pipelines, keyed by shader variant.
Constructors
Constructor
new PipelinePool():
PipelinePool
Returns
PipelinePool
Methods
getSharePipeline()
staticgetSharePipeline(ctx,shaderVariant):GPURenderPipeline
Defined in: src/gfx/graphics/webGpu/PipelinePool.ts:17
Get a shared render pipeline for the given shader variant, or null if not cached.
Parameters
ctx
the rendering context
shaderVariant
string
the shader variant key
Returns
GPURenderPipeline
setSharePipeline()
staticsetSharePipeline(ctx,shaderVariant,pipeline):void
Defined in: src/gfx/graphics/webGpu/PipelinePool.ts:26
Parameters
ctx
shaderVariant
string
pipeline
GPURenderPipeline
Returns
void

