Skip to main content

Type Alias: CompositeShaderPassComputeOptimization<TargetNameT>

CompositeShaderPassComputeOptimization<TargetNameT> = object

Defined in: lib/shader-module/composite-shader-pass.ts:17

Optional WebGPU compute stage that replaces equivalent fragment-only fallback passes.

Type Parameters​

TargetNameT​

TargetNameT extends string = string

Properties​

input​

input: ShaderPassInputSource<TargetNameT>

Defined in: lib/shader-module/composite-shader-pass.ts:31

Logical source image consumed by the fused compute dispatch.


name​

name: string

Defined in: lib/shader-module/composite-shader-pass.ts:19

Stable identifier used for compute resources and command labels.


outputs​

outputs: Record<string, TargetNameT>

Defined in: lib/shader-module/composite-shader-pass.ts:33

Mapping from compute storage-texture names to owned render targets.


replacedPasses​

replacedPasses: readonly string[]

Defined in: lib/shader-module/composite-shader-pass.ts:35

Fragment pass names removed when the WebGPU optimization is supported.


source​

source: string

Defined in: lib/shader-module/composite-shader-pass.ts:21

Complete WGSL compute entry point with explicit binding locations.


uniformBinding​

uniformBinding: string

Defined in: lib/shader-module/composite-shader-pass.ts:25

Explicit WGSL uniform-buffer binding name used by the compute entry point.


uniformModule​

uniformModule: string

Defined in: lib/shader-module/composite-shader-pass.ts:23

Existing fragment module that owns the scalar runtime uniforms.


uniformNames​

uniformNames: readonly string[]

Defined in: lib/shader-module/composite-shader-pass.ts:27

Scalar uniform packing order used by the compute shader.


uniforms​

uniforms: Record<string, number>

Defined in: lib/shader-module/composite-shader-pass.ts:29

Composite-pass scalar defaults layered below per-frame runtime overrides.


workgroupSize​

workgroupSize: readonly [number, number]

Defined in: lib/shader-module/composite-shader-pass.ts:37

Compute workgroup width and height in highest-resolution output texels.