kitsune_ui 0.5.0

A retained-mode UI library in rust
Documentation
struct VertexOut {
    @builtin(position) position: vec4<f32>,
    @location(0) uv: vec2<f32>,
};

@vertex
fn vs_main(@location(0) position: vec2<f32>, @location(1) uv: vec2<f32>) -> VertexOut {
    var out: VertexOut;
    out.position = vec4<f32>(position, 0.0, 1.0);
    out.uv = uv;
    return out;
}

@group(0) @binding(0)
var texture: texture_2d<f32>;
@group(0) @binding(1)
var sample: sampler;

@fragment
fn fs_main(in: VertexOut) -> @location(0) vec4<f32> {
    return  textureSample(texture, sample, in.uv);
}