1spv.1.6.specConstant.comp 2// Module Version 10600 3// Generated by (magic number): 8000b 4// Id's are bound by 39 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint GLCompute 4 "main" 18 10 ExecutionModeId 4 LocalSizeId 7 8 9 11 Source GLSL 450 12 Name 4 "main" 13 Name 14 "foo(vu3;" 14 Name 13 "wgs" 15 Name 16 "bn" 16 MemberName 16(bn) 0 "a" 17 Name 18 "bi" 18 Name 37 "param" 19 Decorate 7 SpecId 18 20 Decorate 9 SpecId 19 21 Decorate 16(bn) Block 22 MemberDecorate 16(bn) 0 Offset 0 23 Decorate 18(bi) Binding 0 24 Decorate 18(bi) DescriptorSet 0 25 Decorate 25 SpecId 18 26 Decorate 26 SpecId 19 27 2: TypeVoid 28 3: TypeFunction 2 29 6: TypeInt 32 0 30 7: 6(int) SpecConstant 32 31 8: 6(int) Constant 32 32 9: 6(int) SpecConstant 1 33 10: TypeVector 6(int) 3 34 11: TypePointer Function 10(ivec3) 35 12: TypeFunction 2 11(ptr) 36 16(bn): TypeStruct 6(int) 37 17: TypePointer StorageBuffer 16(bn) 38 18(bi): 17(ptr) Variable StorageBuffer 39 19: TypeInt 32 1 40 20: 19(int) Constant 0 41 21: 6(int) Constant 0 42 22: TypePointer Function 6(int) 43 25: 6(int) SpecConstant 32 44 26: 6(int) SpecConstant 1 45 27: 10(ivec3) SpecConstantComposite 25 8 26 46 28: 6(int) Constant 1 47 31: 6(int) Constant 2 48 35: TypePointer StorageBuffer 6(int) 49 4(main): 2 Function None 3 50 5: Label 51 37(param): 11(ptr) Variable Function 52 Store 37(param) 27 53 38: 2 FunctionCall 14(foo(vu3;) 37(param) 54 Return 55 FunctionEnd 56 14(foo(vu3;): 2 Function None 12 57 13(wgs): 11(ptr) FunctionParameter 58 15: Label 59 23: 22(ptr) AccessChain 13(wgs) 21 60 24: 6(int) Load 23 61 29: 6(int) CompositeExtract 27 1 62 30: 6(int) IMul 24 29 63 32: 22(ptr) AccessChain 13(wgs) 31 64 33: 6(int) Load 32 65 34: 6(int) IMul 30 33 66 36: 35(ptr) AccessChain 18(bi) 20 67 Store 36 34 68 Return 69 FunctionEnd 70