Type Alias: ShaderPassRenderTarget
ShaderPassRenderTarget =
object
Defined in: lib/shader-module/shader-pass.ts:9
Properties
aliasFor?
optionalaliasFor?:string
Defined in: lib/shader-module/shader-pass.ts:17
Reuse an earlier transient target with an identical size, format, and sampler.
format?
optionalformat?:TextureFormat
Defined in: lib/shader-module/shader-pass.ts:13
Render target format. Defaults to the device preferred color format.
initialize?
optionalinitialize?:"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?
optionallifetime?:"transient"|"history"
Defined in: lib/shader-module/shader-pass.ts:21
Resource lifetime. History targets retain their last successfully rendered value.
sampler?
optionalsampler?:SamplerProps
Defined in: lib/shader-module/shader-pass.ts:15
Optional sampling behavior when later passes read this target.
scale?
optionalscale?: [number,number]
Defined in: lib/shader-module/shader-pass.ts:11
Width and height scale relative to the renderer output size.
storage?
optionalstorage?:boolean
Defined in: lib/shader-module/shader-pass.ts:19
Allow WebGPU compute shaders to write this target as a storage texture.