Back home 🏡 WGSL Spec Bevy WGSL Functions

texture_binding_array.wgsl

Bindings

Name Group Binding index Binding type Type
textures # 2 0 binding_array<texture_2d<f32>>
nearest_sampler # 2 1 sampler

Functions

fragment

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