mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
Add a new Naga feature, `"compact"`, which adds a new function `naga::compact::compact`, which removes unused expressions, types, and constants from a `Module`.
24 lines
307 B
WebGPU Shading Language
24 lines
307 B
WebGPU Shading Language
fn fb1_(cond: ptr<function, bool>) {
|
|
loop {
|
|
continue;
|
|
continuing {
|
|
let _e1 = (*cond);
|
|
break if !(_e1);
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|
|
fn main_1() {
|
|
var param: bool;
|
|
|
|
param = false;
|
|
fb1_((¶m));
|
|
return;
|
|
}
|
|
|
|
@fragment
|
|
fn main() {
|
|
main_1();
|
|
}
|