Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/comp/bitscan.asm.comp

raw
1 RWByteAddressBuffer _4 : register(u0);
2
3 void comp_main()
4 {
5 uint4 _19 = _4.Load4(0);
6 int4 _20 = int4(_4.Load4(16));
7 _4.Store4(0, firstbitlow(_19));
8 _4.Store4(16, uint4(int4(firstbitlow(_19))));
9 _4.Store4(0, uint4(firstbitlow(_20)));
10 _4.Store4(16, uint4(firstbitlow(_20)));
11 _4.Store4(0, firstbithigh(_19));
12 _4.Store4(16, uint4(int4(firstbithigh(_19))));
13 _4.Store4(0, firstbithigh(uint4(_20)));
14 _4.Store4(16, uint4(int4(firstbithigh(uint4(_20)))));
15 _4.Store4(0, uint4(firstbithigh(int4(_19))));
16 _4.Store4(16, uint4(firstbithigh(int4(_19))));
17 _4.Store4(0, uint4(firstbithigh(_20)));
18 _4.Store4(16, uint4(firstbithigh(_20)));
19 }
20
21 [numthreads(1, 1, 1)]
22 void main()
23 {
24 comp_main();
25 }