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

11 lines
139 B
WebGPU Shading Language

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