1 2 3 4 5 6 7 8 9 10 11 12
import package::mesh2d::vertex_output::VertexOutput; struct PushConstants { color: vec4<f32> } var<immediate> push_constants: PushConstants; @fragment fn fragment(in: VertexOutput) -> @location(0) vec4<f32> { return push_constants.color; }