const_shader_layout 0.1.0

Compile-time checks for whether structs conform to WGSL's memory layout rules
Documentation
1
2
3
4
5
6
7
8
9
10
use const_shader_layout::shader_layout;

shader_layout! {
    pub struct MyUniform {
        a1: f32,
        a4: glam::Vec3,
    }
}

fn main() {}