bevy_ui_render 0.20.0

Provides rendering functionality for Bevy UI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// 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 border radius x value in pixels. Order is top left, top right, bottom right, bottom left.
    @location(2) border_radius_x: vec4<f32>,
    /// The border radius y value in pixels. Order is top left, top right, bottom right, bottom left.
    @location(3) border_radius_y: vec4<f32>,
    /// The size of the node in pixels. Order is width, height.
    @location(4) @interpolate(flat) size: vec2<f32>,
    @builtin(position) position: vec4<f32>,
};