wgpu/naga/tests/out/hlsl/empty-global-name.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

19 lines
247 B
HLSL

struct type_1 {
int member;
};
RWByteAddressBuffer unnamed : register(u0);
void function()
{
int _e3 = asint(unnamed.Load(0));
unnamed.Store(0, asuint((_e3 + 1)));
return;
}
[numthreads(1, 1, 1)]
void main()
{
function();
}