1 spv.AofA.frag 2 WARNING: 0:6: '[][]' : Generating SPIR-V array-of-arrays, but Vulkan only supports single array level for this resource 3 4 Validation failed 5 // Module Version 10000 6 // Generated by (magic number): 80007 7 // Id's are bound by 104 8 9 Capability Shader 10 1: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint Fragment 4 "main" 39 44 68 70 72 78 13 ExecutionMode 4 OriginUpperLeft 14 Source GLSL 430 15 Name 4 "main" 16 Name 17 "foo(f1[5][7];" 17 Name 16 "a" 18 Name 20 "r" 19 Name 39 "outfloat" 20 Name 42 "g4" 21 Name 44 "g5" 22 Name 45 "param" 23 Name 48 "u" 24 Name 52 "param" 25 Name 66 "many" 26 Name 68 "i" 27 Name 70 "j" 28 Name 72 "k" 29 Name 78 "infloat" 30 Name 94 "uAofA" 31 MemberName 94(uAofA) 0 "f" 32 Name 98 "nameAofA" 33 Decorate 68(i) Flat 34 Decorate 70(j) Flat 35 Decorate 72(k) Flat 36 Decorate 92 ArrayStride 16 37 Decorate 93 ArrayStride 64 38 MemberDecorate 94(uAofA) 0 Offset 0 39 Decorate 94(uAofA) Block 40 Decorate 98(nameAofA) DescriptorSet 0 41 Decorate 98(nameAofA) Binding 0 42 2: TypeVoid 43 3: TypeFunction 2 44 6: TypeFloat 32 45 7: TypeInt 32 0 46 8: 7(int) Constant 7 47 9: TypeArray 6(float) 8 48 10: 7(int) Constant 5 49 11: TypeArray 9 10 50 12: TypePointer Function 11 51 13: 7(int) Constant 4 52 14: TypeArray 9 13 53 15: TypeFunction 14 12(ptr) 54 19: TypePointer Function 9 55 21: TypeInt 32 1 56 22: 21(int) Constant 2 57 25: 21(int) Constant 0 58 28: 21(int) Constant 1 59 32: 21(int) Constant 3 60 38: TypePointer Output 6(float) 61 39(outfloat): 38(ptr) Variable Output 62 40: 6(float) Constant 0 63 41: TypePointer Private 14 64 42(g4): 41(ptr) Variable Private 65 43: TypePointer Input 11 66 44(g5): 43(ptr) Variable Input 67 49: 6(float) Constant 1077936128 68 50: TypePointer Function 6(float) 69 55: 7(int) Constant 6 70 56: TypeArray 6(float) 55 71 57: TypeArray 56 10 72 58: TypeArray 57 13 73 59: 7(int) Constant 3 74 60: TypeArray 58 59 75 61: 7(int) Constant 2 76 62: TypeArray 60 61 77 63: 7(int) Constant 1 78 64: TypeArray 62 63 79 65: TypePointer Private 64 80 66(many): 65(ptr) Variable Private 81 67: TypePointer Input 21(int) 82 68(i): 67(ptr) Variable Input 83 70(j): 67(ptr) Variable Input 84 72(k): 67(ptr) Variable Input 85 77: TypePointer Input 6(float) 86 78(infloat): 77(ptr) Variable Input 87 80: TypePointer Private 6(float) 88 92: TypeArray 6(float) 13 89 93: TypeArray 92 61 90 94(uAofA): TypeStruct 93 91 95: TypeArray 94(uAofA) 10 92 96: TypeArray 95 59 93 97: TypePointer Uniform 96 94 98(nameAofA): 97(ptr) Variable Uniform 95 99: TypePointer Uniform 6(float) 96 4(main): 2 Function None 3 97 5: Label 98 45(param): 12(ptr) Variable Function 99 48(u): 12(ptr) Variable Function 100 52(param): 12(ptr) Variable Function 101 Store 39(outfloat) 40 102 46: 11 Load 44(g5) 103 Store 45(param) 46 104 47: 14 FunctionCall 17(foo(f1[5][7];) 45(param) 105 Store 42(g4) 47 106 51: 50(ptr) AccessChain 48(u) 22 22 107 Store 51 49 108 53: 11 Load 48(u) 109 Store 52(param) 53 110 54: 14 FunctionCall 17(foo(f1[5][7];) 52(param) 111 69: 21(int) Load 68(i) 112 71: 21(int) Load 70(j) 113 73: 21(int) Load 72(k) 114 74: 21(int) Load 68(i) 115 75: 21(int) Load 70(j) 116 76: 21(int) Load 72(k) 117 79: 6(float) Load 78(infloat) 118 81: 80(ptr) AccessChain 66(many) 69 71 73 74 75 76 119 Store 81 79 120 82: 21(int) Load 70(j) 121 83: 21(int) Load 70(j) 122 84: 21(int) Load 70(j) 123 85: 21(int) Load 70(j) 124 86: 21(int) Load 70(j) 125 87: 21(int) Load 70(j) 126 88: 80(ptr) AccessChain 66(many) 82 83 84 85 86 87 127 89: 6(float) Load 88 128 90: 6(float) Load 39(outfloat) 129 91: 6(float) FAdd 90 89 130 Store 39(outfloat) 91 131 100: 99(ptr) AccessChain 98(nameAofA) 28 22 25 25 32 132 101: 6(float) Load 100 133 102: 6(float) Load 39(outfloat) 134 103: 6(float) FAdd 102 101 135 Store 39(outfloat) 103 136 Return 137 FunctionEnd 138 17(foo(f1[5][7];): 14 Function None 15 139 16(a): 12(ptr) FunctionParameter 140 18: Label 141 20(r): 19(ptr) Variable Function 142 23: 19(ptr) AccessChain 16(a) 22 143 24: 9 Load 23 144 Store 20(r) 24 145 26: 19(ptr) AccessChain 16(a) 25 146 27: 9 Load 26 147 29: 19(ptr) AccessChain 16(a) 28 148 30: 9 Load 29 149 31: 9 Load 20(r) 150 33: 19(ptr) AccessChain 16(a) 32 151 34: 9 Load 33 152 35: 14 CompositeConstruct 27 30 31 34 153 ReturnValue 35 154 FunctionEnd 155