Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/comp/spec-constant-op-convert-sign.asm.comp

raw
1 #version 450
2 #extension GL_ARB_gpu_shader_int64 : require
3 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
4
5 #ifndef SPIRV_CROSS_CONSTANT_ID_0
6 #define SPIRV_CROSS_CONSTANT_ID_0 1
7 #endif
8 const int ConstantInt = SPIRV_CROSS_CONSTANT_ID_0;
9 #ifndef SPIRV_CROSS_CONSTANT_ID_1
10 #define SPIRV_CROSS_CONSTANT_ID_1 2u
11 #endif
12 const uint ConstantUint = SPIRV_CROSS_CONSTANT_ID_1;
13 const int64_t ConstantInt64_1 = int64_t(ConstantInt);
14 const int64_t ConstantInt64_2 = int64_t(int(ConstantUint));
15 const uint64_t ConstantUint64_1 = uint64_t(ConstantInt);
16 const uint64_t ConstantUint64_2 = uint64_t(int(ConstantUint));
17 const int64_t _20 = (ConstantInt64_1 + ConstantInt64_2);
18 const uint64_t _21 = (ConstantUint64_1 + ConstantUint64_2);
19 const int _22 = int(_20);
20 const uint _23 = uint(_21);
21
22 layout(binding = 0, std430) buffer SSBO
23 {
24 int s64;
25 uint u64;
26 } _4;
27
28 void main()
29 {
30 _4.s64 = _22;
31 _4.u64 = _23;
32 }
33