5import package::ui_vertex_output::UiVertexOutput; 8var<uniform> view: View; 10var<uniform> globals: Globals; 14 @location(0) vertex_position: vec3<f32>, 15 @location(1) vertex_uv: vec2<f32>, 16 @location(2) size: vec2<f32>, 17 @location(3) border_widths: vec4<f32>, 18 @location(4) border_radius_x: vec4<f32>, 19 @location(5) border_radius_y: vec4<f32>, 21 var out: UiVertexOutput; 23 out.position = view.clip_from_world * vec4<f32>(vertex_position, 1.0); 25 out.border_widths = border_widths; 26 out.border_radius_x = border_radius_x; 27 out.border_radius_y = border_radius_y; 32fn fragment(in: UiVertexOutput) -> @location(0) vec4<f32> { 33 return vec4<f32>(1.0);