mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-29 18:23:36 +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.
22 lines
349 B
HLSL
22 lines
349 B
HLSL
static float a = (float)0;
|
|
|
|
void main_1()
|
|
{
|
|
float b = (float)0;
|
|
float c = (float)0;
|
|
float d = (float)0;
|
|
|
|
float _e4 = a;
|
|
b = log(_e4 + sqrt(_e4 * _e4 + 1.0));
|
|
float _e6 = a;
|
|
c = log(_e6 + sqrt(_e6 * _e6 - 1.0));
|
|
float _e8 = a;
|
|
d = 0.5 * log((1.0 + _e8) / (1.0 - _e8));
|
|
return;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
main_1();
|
|
}
|