wgpu/naga/tests/out/hlsl/do-while.hlsl
Jim Blandy 92287c30b5 [naga hlsl-out] Use Baked for baked expressions.
Make the HLSL backend more like other backends by using `back::Baked`
to generate names for baked expression identifiers. This removes the
final uses of `Handle::index` from the HLSL backend.

This is separated out from the previous commit because it changes lots
of snapshot tests, whereas the previous commit has no effect on Naga's
output.
2024-06-21 09:56:40 +02:00

30 lines
392 B
HLSL

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