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