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.
25 lines
556 B
HLSL
25 lines
556 B
HLSL
static const bool has_point_light = false;
|
|
static const float specular_param = 2.3;
|
|
static const float gain = 1.1;
|
|
static const float width = 0.0;
|
|
static const float depth = 2.3;
|
|
static const float height = 4.6;
|
|
static const float inferred_f32_ = 2.718;
|
|
|
|
static float gain_x_10_ = 11.0;
|
|
static float store_override = (float)0;
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void main()
|
|
{
|
|
float t = 23.0;
|
|
bool x = (bool)0;
|
|
float gain_x_100_ = (float)0;
|
|
|
|
x = true;
|
|
float _e9 = gain_x_10_;
|
|
gain_x_100_ = (_e9 * 10.0);
|
|
store_override = gain;
|
|
return;
|
|
}
|