dawn-cmake/test/shader_io/invariant_struct_member.wgsl

9 lines
124 B
WebGPU Shading Language

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