1 spv.rankShift.comp 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 33 5 6 Capability Shader 7 Capability Int64 8 1: ExtInstImport "GLSL.std.450" 9 MemoryModel Logical GLSL450 10 EntryPoint GLCompute 4 "main" 11 ExecutionMode 4 LocalSize 54 1 1 12 Source GLSL 450 13 SourceExtension "GL_ARB_gpu_shader_int64" 14 Name 4 "main" 15 Name 8 "result" 16 Name 11 "arg0" 17 Name 15 "arg1" 18 Decorate 11(arg0) Location 4 19 Decorate 15(arg1) Location 5 20 Decorate 32 BuiltIn WorkgroupSize 21 2: TypeVoid 22 3: TypeFunction 2 23 6: TypeInt 64 0 24 7: TypePointer Function 6(int64_t) 25 9: TypeInt 64 1 26 10: TypePointer UniformConstant 9(int64_t) 27 11(arg0): 10(ptr) Variable UniformConstant 28 13: TypeInt 32 0 29 14: TypePointer UniformConstant 13(int) 30 15(arg1): 14(ptr) Variable UniformConstant 31 29: TypeVector 13(int) 3 32 30: 13(int) Constant 54 33 31: 13(int) Constant 1 34 32: 29(ivec3) ConstantComposite 30 31 31 35 4(main): 2 Function None 3 36 5: Label 37 8(result): 7(ptr) Variable Function 38 12: 9(int64_t) Load 11(arg0) 39 16: 13(int) Load 15(arg1) 40 17: 9(int64_t) ShiftLeftLogical 12 16 41 18: 6(int64_t) Bitcast 17 42 Store 8(result) 18 43 19: 9(int64_t) Load 11(arg0) 44 20: 13(int) Load 15(arg1) 45 21: 9(int64_t) ShiftRightArithmetic 19 20 46 22: 6(int64_t) Bitcast 21 47 Store 8(result) 22 48 23: 13(int) Load 15(arg1) 49 24: 6(int64_t) Load 8(result) 50 25: 6(int64_t) ShiftLeftLogical 24 23 51 Store 8(result) 25 52 26: 13(int) Load 15(arg1) 53 27: 6(int64_t) Load 8(result) 54 28: 6(int64_t) ShiftRightLogical 27 26 55 Store 8(result) 28 56 Return 57 FunctionEnd 58