Skip to main content

ShaderPipeline

Runs an ordered chain of ShaderPasses: source → pass0 → fb0 → pass1 → fb1 → ... → destination

Intermediate framebuffers are allocated lazily, one per pass, sized by each pass's scale relative to the source. The final pass renders into the caller's destination at the destination's own size, which is what upsamples a downscaled chain back up.

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

publicreadonlyname

name: string

publicreadonlypasses

passes: ShaderPass[]

Methods

publicdispose

  • dispose(): void
  • Disposes the passes and intermediate framebuffers, the pipeline cannot be used afterwards


    Returns void

publicprocess