mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
Add a new Naga feature, `"compact"`, which adds a new function `naga::compact::compact`, which removes unused expressions, types, and constants from a `Module`.
19 lines
253 B
HLSL
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();
|
|
}
|