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