mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Escape non-ASCII identifier characters with `write!(…, "u{:04x}", …)`,
surrounding with `_` as appropriate. This solves (1) a debugging issue
where stripped characters would otherwise be invisible, and (2) failure
to re-validate that stripped identifiers didn't start with an ASCII
digit.
I've confirmed that this fixes [bug
1978197](https://bugzilla.mozilla.org/show_bug.cgi?id=1978197) on the
Firefox side.
33 lines
582 B
HLSL
33 lines
582 B
HLSL
void f_u0028_b1_u003b(inout bool cond)
|
|
{
|
|
uint2 loop_bound = uint2(4294967295u, 4294967295u);
|
|
bool loop_init = true;
|
|
while(true) {
|
|
if (all(loop_bound == uint2(0u, 0u))) { break; }
|
|
loop_bound -= uint2(loop_bound.y == 0u, 1u);
|
|
if (!loop_init) {
|
|
bool _e1 = cond;
|
|
if (!(_e1)) {
|
|
break;
|
|
}
|
|
}
|
|
loop_init = false;
|
|
continue;
|
|
}
|
|
return;
|
|
}
|
|
|
|
void main_1()
|
|
{
|
|
bool param = (bool)0;
|
|
|
|
param = false;
|
|
f_u0028_b1_u003b(param);
|
|
return;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
main_1();
|
|
}
|