third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/comp/glsl.std450.frexp-modf-struct.fxconly.asm.comp
raw| 1 | struct _8 |
| 2 | { |
| 3 | float _m0; |
| 4 | float _m1; |
| 5 | }; |
| 6 | |
| 7 | struct _15 |
| 8 | { |
| 9 | float _m0; |
| 10 | int _m1; |
| 11 | }; |
| 12 | |
| 13 | RWByteAddressBuffer _4 : register(u0); |
| 14 | |
| 15 | void comp_main() |
| 16 | { |
| 17 | _8 _23; |
| 18 | _23._m0 = modf(20.0f, _23._m1); |
| 19 | _15 _24; |
| 20 | _24._m0 = frexp(40.0f, _24._m1); |
| 21 | _4.Store(0, asuint(_23._m0)); |
| 22 | _4.Store(0, asuint(_23._m1)); |
| 23 | _4.Store(0, asuint(_24._m0)); |
| 24 | _4.Store(4, uint(_24._m1)); |
| 25 | } |
| 26 | |
| 27 | [numthreads(1, 1, 1)] |
| 28 | void main() |
| 29 | { |
| 30 | comp_main(); |
| 31 | } |