Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

prepass_utils.wgsl

Import path

Functions

prepass_depth

#

Shader defs requirments:

🟢 DEPTH_PREPASS

fn prepass_depth (
frag_coord: vec4<f32>
sample_index: u32
) -> f32

prepass_normal

#

Shader defs requirments:

🟢 NORMAL_PREPASS

fn prepass_normal (
frag_coord: vec4<f32>
sample_index: u32
) -> vec3<f32>

prepass_motion_vector

#

Shader defs requirments:

🟢 MOTION_VECTOR_PREPASS

fn prepass_motion_vector (
frag_coord: vec4<f32>
sample_index: u32
) -> vec2<f32>