Files
wgpu/tests/out/hlsl/empty-global-name.hlsl
T
Jim Blandy 8b267218a4 Implement module compaction.
Add a new Naga feature, `"compact"`, which adds a new function
`naga::compact::compact`, which removes unused expressions, types, and
constants from a `Module`.
2023-09-20 18:46:33 +02:00

19 lines
253 B
HLSL

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