//! These types generate the GLSL vertex and uniform declarations. pub const Vertex = extern struct { position: [3]f32, normal: [3]f32, color: [4]f32 = .{ 1, 1, 1, 1 }, pub const glsl = .vertex; }; pub const Transform = extern struct { model: [4][4]f32, view_projection: [4][4]f32, color: [4]f32, pub const glsl = .{ .uniform = .{ .set = 1, .instance = "transform" } }; };