dawn-cmake/test/bug/tint/1369.wgsl

11 lines
149 B
WebGPU Shading Language

fn call_discard() -> bool {
discard;
return true;
}
[[stage(fragment)]]
fn f() {
var v = call_discard();
var also_unreachable : bool;
}