bevy_ui_render 0.19.0

Provides rendering functionality for Bevy UI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#define_import_path bevy_ui::ui_vertex_output

// The Vertex output of the default vertex shader for the Ui Material pipeline.
struct UiVertexOutput {
    @location(0) uv: vec2<f32>,
    // The size of the borders in UV space. Order is Left, Right, Top, Bottom.
    @location(1) border_widths: vec4<f32>,
    // The size of the borders in pixels. Order is top left, top right, bottom right, bottom left.
    @location(2) border_radius: vec4<f32>,
    // The size of the node in pixels. Order is width, height.
    @location(3) @interpolate(flat) size: vec2<f32>,
    @builtin(position) position: vec4<f32>,
};