mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 16:53:48 +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.
19 lines
247 B
HLSL
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();
|
|
}
|