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