wgpu/naga/tests/out/hlsl/inv-hyperbolic-trig-functions.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

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();
}