Skip to main content

ShaderPassDrawOptions

Index

Properties

destination

Where to render: a Framebuffer or null for the canvas backbuffer

optionalelapsed

elapsed?: number

Elapsed milliseconds forwarded to u_elapsed_ms

optionalsource

Single-source shorthand, bound as u_image

optionalsources

sources?: Record<string, ShaderPassSource>

Named sources, each record key is bound as the sampler uniform of that name

optionaluniforms

Per-draw uniform values, merged over (and persisted into) the pass uniforms