dawn-cmake/test/shader_io/invariant_struct_member.wgs...

10 lines
125 B
WebGPU Shading Language

struct Out {
[[builtin(position), invariant]]
pos : vec4<f32>;
}
[[stage(vertex)]]
fn main() -> Out {
return Out();
}