Skip to content

@orillusion/core


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()

static getSharePipeline(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

Context3D

the rendering context

shaderVariant

string

the shader variant key

Returns

GPURenderPipeline


setSharePipeline()

static setSharePipeline(ctx, shaderVariant, pipeline): void

Defined in: src/gfx/graphics/webGpu/PipelinePool.ts:26

Parameters

ctx

Context3D

shaderVariant

string

pipeline

GPURenderPipeline

Returns

void