Debian Codegraph @

third_party/spirv-cross/reference/shaders-msl-no-opt/asm/comp/arithmetic-conversion-signs.asm.comp

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct SSBO
7 {
8 int s32;
9 uint u32;
10 short s16;
11 ushort u16;
12 float f32;
13 };
14
15 kernel void main0(device SSBO& _4 [[buffer(0)]])
16 {
17 int _29 = _4.s32;
18 uint _30 = _4.u32;
19 short _31 = _4.s16;
20 ushort _32 = _4.u16;
21 float _33 = _4.f32;
22 _4.s32 = int(_31);
23 _4.u32 = uint(_31);
24 _4.s32 = int(short(_32));
25 _4.u32 = uint(short(_32));
26 _4.u32 = uint(ushort(_31));
27 _4.u32 = uint(_32);
28 _4.s16 = short(_29);
29 _4.u16 = ushort(_29);
30 _4.s16 = short(_30);
31 _4.u16 = ushort(_30);
32 _4.u16 = ushort(_29);
33 _4.u16 = ushort(_30);
34 _4.f32 = float(_31);
35 _4.f32 = float(short(_32));
36 _4.f32 = float(ushort(_31));
37 _4.f32 = float(_32);
38 _4.s16 = short(_33);
39 _4.u16 = ushort(short(_33));
40 _4.u16 = ushort(_33);
41 }
42