Back home 🏡 WGSL Spec Bevy WGSL Functions

custom_ui_material.wgsl

Bindings

Name Group Binding index Binding type Type
color # 1 0 <uniform> vec4<f32>
slider # 1 1 <uniform> f32
material_color_texture # 1 2 texture_2d<f32>
material_color_sampler # 1 3 sampler
border_color # 1 4 <uniform> vec4<f32>

Functions

fragment

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