1spv.variableArrayIndex.frag 2// Module Version 10000 3// Generated by (magic number): 80007 4// Id's are bound by 93 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 10 20 34 36 54 63 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 400 12 Name 4 "main" 13 Name 8 "iLocal" 14 Name 10 "Count" 15 Name 13 "lunarStruct1" 16 MemberName 13(lunarStruct1) 0 "i" 17 MemberName 13(lunarStruct1) 1 "f" 18 Name 14 "lunarStruct2" 19 MemberName 14(lunarStruct2) 0 "i" 20 MemberName 14(lunarStruct2) 1 "f" 21 MemberName 14(lunarStruct2) 2 "s1_1" 22 Name 18 "lunarStruct3" 23 MemberName 18(lunarStruct3) 0 "s2_1" 24 MemberName 18(lunarStruct3) 1 "i" 25 MemberName 18(lunarStruct3) 2 "f" 26 MemberName 18(lunarStruct3) 3 "s1_1" 27 Name 20 "foo3" 28 Name 30 "scale" 29 Name 34 "foo2" 30 Name 36 "foo" 31 Name 54 "gl_FragColor" 32 Name 59 "samp2D" 33 Name 63 "coord" 34 Name 69 "constructed" 35 Decorate 10(Count) Flat 36 Decorate 20(foo3) Flat 37 Decorate 34(foo2) Flat 38 Decorate 36(foo) Flat 39 Decorate 54(gl_FragColor) Location 0 40 Decorate 59(samp2D) DescriptorSet 0 41 2: TypeVoid 42 3: TypeFunction 2 43 6: TypeInt 32 1 44 7: TypePointer Function 6(int) 45 9: TypePointer Input 6(int) 46 10(Count): 9(ptr) Variable Input 47 12: TypeFloat 32 4813(lunarStruct1): TypeStruct 6(int) 12(float) 4914(lunarStruct2): TypeStruct 6(int) 12(float) 13(lunarStruct1) 50 15: TypeInt 32 0 51 16: 15(int) Constant 3 52 17: TypeArray 14(lunarStruct2) 16 5318(lunarStruct3): TypeStruct 17 6(int) 12(float) 13(lunarStruct1) 54 19: TypePointer Input 18(lunarStruct3) 55 20(foo3): 19(ptr) Variable Input 56 21: 6(int) Constant 0 57 22: 6(int) Constant 1 58 25: TypeBool 59 29: TypePointer Function 12(float) 60 31: 15(int) Constant 5 61 32: TypeArray 14(lunarStruct2) 31 62 33: TypePointer Input 32 63 34(foo2): 33(ptr) Variable Input 64 35: TypePointer Input 13(lunarStruct1) 65 36(foo): 35(ptr) Variable Input 66 41: 6(int) Constant 2 67 46: TypePointer Input 12(float) 68 52: TypeVector 12(float) 4 69 53: TypePointer Output 52(fvec4) 7054(gl_FragColor): 53(ptr) Variable Output 71 56: TypeImage 12(float) 2D sampled format:Unknown 72 57: TypeSampledImage 56 73 58: TypePointer UniformConstant 57 74 59(samp2D): 58(ptr) Variable UniformConstant 75 61: TypeVector 12(float) 2 76 62: TypePointer Input 61(fvec2) 77 63(coord): 62(ptr) Variable Input 78 67: TypeArray 61(fvec2) 16 79 68: TypePointer Function 67 80 73: 12(float) Constant 1065353216 81 74: 12(float) Constant 1073741824 82 75: 61(fvec2) ConstantComposite 73 74 83 79: TypePointer Function 61(fvec2) 84 4(main): 2 Function None 3 85 5: Label 86 8(iLocal): 7(ptr) Variable Function 87 30(scale): 29(ptr) Variable Function 88 69(constructed): 68(ptr) Variable Function 89 11: 6(int) Load 10(Count) 90 Store 8(iLocal) 11 91 23: 9(ptr) AccessChain 20(foo3) 21 22 21 92 24: 6(int) Load 23 93 26: 25(bool) SGreaterThan 24 21 94 SelectionMerge 28 None 95 BranchConditional 26 27 49 96 27: Label 97 37: 9(ptr) AccessChain 36(foo) 21 98 38: 6(int) Load 37 99 39: 9(ptr) AccessChain 20(foo3) 21 38 21 100 40: 6(int) Load 39 101 42: 6(int) IAdd 40 41 102 43: 6(int) Load 8(iLocal) 103 44: 6(int) IAdd 43 22 104 Store 8(iLocal) 44 105 45: 6(int) IAdd 42 44 106 47: 46(ptr) AccessChain 34(foo2) 45 41 22 107 48: 12(float) Load 47 108 Store 30(scale) 48 109 Branch 28 110 49: Label 111 50: 46(ptr) AccessChain 20(foo3) 21 21 41 22 112 51: 12(float) Load 50 113 Store 30(scale) 51 114 Branch 28 115 28: Label 116 55: 12(float) Load 30(scale) 117 60: 57 Load 59(samp2D) 118 64: 61(fvec2) Load 63(coord) 119 65: 52(fvec4) ImageSampleImplicitLod 60 64 120 66: 52(fvec4) VectorTimesScalar 65 55 121 Store 54(gl_FragColor) 66 122 70: 61(fvec2) Load 63(coord) 123 71: 12(float) Load 30(scale) 124 72: 61(fvec2) CompositeConstruct 71 71 125 76: 67 CompositeConstruct 70 72 75 126 Store 69(constructed) 76 127 77: 9(ptr) AccessChain 36(foo) 21 128 78: 6(int) Load 77 129 80: 79(ptr) AccessChain 69(constructed) 78 130 81: 61(fvec2) Load 80 131 82: 9(ptr) AccessChain 36(foo) 21 132 83: 6(int) Load 82 133 84: 79(ptr) AccessChain 69(constructed) 83 134 85: 61(fvec2) Load 84 135 86: 12(float) CompositeExtract 81 0 136 87: 12(float) CompositeExtract 81 1 137 88: 12(float) CompositeExtract 85 0 138 89: 12(float) CompositeExtract 85 1 139 90: 52(fvec4) CompositeConstruct 86 87 88 89 140 91: 52(fvec4) Load 54(gl_FragColor) 141 92: 52(fvec4) FAdd 91 90 142 Store 54(gl_FragColor) 92 143 Return 144 FunctionEnd 145