Interface CustomPostProcessTaskConfig
interface CustomPostProcessTaskConfig {
alphaMode?: PostProcessAlphaMode;
clear?: boolean;
extraTextures?: readonly RenderTarget[];
extraTextureWGSL?: WgslSource;
fragmentWGSL: WgslSource;
name?: string;
sourceSamplingMode?: PostProcessSamplingMode;
sourceTexture: RenderTarget;
targetTexture?: RenderTarget | null;
uniformByteLength?: number;
uniformWGSL?: WgslSource;
viewport?: NormalizedViewport | null;
writeUniforms?: (data: Float32Array) => void;
}
alphaMode?: PostProcessAlphaMode;
clear?: boolean;
extraTextures?: readonly RenderTarget[];
extraTextureWGSL?: WgslSource;
fragmentWGSL: WgslSource;
name?: string;
sourceSamplingMode?: PostProcessSamplingMode;
sourceTexture: RenderTarget;
targetTexture?: RenderTarget | null;
uniformByteLength?: number;
uniformWGSL?: WgslSource;
viewport?: NormalizedViewport | null;
writeUniforms?: (data: Float32Array) => void;
}
Hierarchy (View Summary)
- PostProcessTaskSettings
- CustomPostProcessTaskConfig
Properties
Optionalalpha Mode
Optionalclear
clear?: boolean
Clear the target before drawing. Set false when several viewport passes share a target.
Optionalextra Textures
Borrowed, filterable single-sample color targets, in binding order.
Optionalextra Texture WGSL
extraTextureWGSL?: WgslSource
Declare additional texture_2d<f32> inputs at group 0 / bindings 2 + i.
fragment WGSL
fragmentWGSL: WgslSource
WGSL defining fn applyPostProcess(color: vec4f, uv: vec2f) -> vec4f.
Optionalname
name?: string
Optionalsource Sampling Mode
source Texture
Optionaltarget Texture
Optionaluniform Byte Length
uniformByteLength?: number
Uniform payload size in bytes; allocation is rounded up to 16 bytes.
Optionaluniform WGSL
uniformWGSL?: WgslSource
Uniform declarations at group 0 / binding 2 + extraTextures.length (2 without extras).
Optionalviewport
Optionalwrite Uniforms
writeUniforms?: (data: Float32Array) => void
Fill reusable, zeroed float storage on record and task.updateUniforms().
Application-defined fullscreen color pass, using the built-in post-process binding convention.