Back home 🏡 WGSL Spec Bevy WGSL Functions

array_texture.wgsl

Bindings

Name Group Binding index Binding type Type
my_array_texture # 2 0 texture_2d_array<f32>
my_array_texture_sampler # 2 1 sampler

Functions

fragment

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