Skip to main content

Type Alias: ShaderPassRenderTarget

ShaderPassRenderTarget = object

Defined in: lib/shader-module/shader-pass.ts:9

Properties​

aliasFor?​

optional aliasFor?: string

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

Reuse an earlier transient target with an identical size, format, and sampler.


format?​

optional format?: TextureFormat

Defined in: lib/shader-module/shader-pass.ts:13

Render target format. Defaults to the device preferred color format.


initialize?​

optional initialize?: "original" | { clearColor: [number, number, number, number]; }

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

Initial value used after construction, resize, or an explicit history reset.


lifetime?​

optional lifetime?: "transient" | "history"

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

Resource lifetime. History targets retain their last successfully rendered value.


sampler?​

optional sampler?: SamplerProps

Defined in: lib/shader-module/shader-pass.ts:15

Optional sampling behavior when later passes read this target.


scale?​

optional scale?: [number, number]

Defined in: lib/shader-module/shader-pass.ts:11

Width and height scale relative to the renderer output size.


storage?​

optional storage?: boolean

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

Allow WebGPU compute shaders to write this target as a storage texture.