mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 08:44:08 +00:00
92287c30b5
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.
30 lines
392 B
HLSL
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();
|
|
}
|