dawn-cmake/test/tint/shader_io/fragment_output_builtins.wgsl

10 lines
135 B
WebGPU Shading Language

@fragment
fn main1() -> @builtin(frag_depth) f32 {
return 1.0;
}
@fragment
fn main2() -> @builtin(sample_mask) u32 {
return 1u;
}