Files
wgpu/tests/out/hlsl/do-while.hlsl
Jim Blandy 8b267218a4 Implement module compaction.
Add a new Naga feature, `"compact"`, which adds a new function
`naga::compact::compact`, which removes unused expressions, types, and
constants from a `Module`.
2023-09-20 18:46:33 +02:00

30 lines
398 B
HLSL

void fb1_(inout bool cond)
{
bool loop_init = true;
while(true) {
if (!loop_init) {
bool _expr1 = cond;
if (!(_expr1)) {
break;
}
}
loop_init = false;
continue;
}
return;
}
void main_1()
{
bool param = (bool)0;
param = false;
fb1_(param);
return;
}
void main()
{
main_1();
}