Back home 🏡 WGSL Spec Bevy WGSL Functions

show_prepass.wgsl

Bindings

Name Group Binding index Binding type Type
settings # 2 0 <uniform> ShowPrepassSettings

Structures

ShowPrepassSettings

#
Name Type
show_depth u32
show_normals u32
show_motion_vectors u32
padding_1 u32
padding_2 u32

Functions

fragment

#
@fragment
fn fragment(sample_index: u32, mesh: VertexOutput) -> @location(0) vec4<f32>
Parameter Type
sample_index u32
mesh VertexOutput
Returns: @location(0) vec4<f32>