1spv.structure.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 60
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 45 54
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 8  "scale"
14                              Name 18  "lunarStruct1"
15                              MemberName 18(lunarStruct1) 0  "i"
16                              MemberName 18(lunarStruct1) 1  "f"
17                              MemberName 18(lunarStruct1) 2  "color"
18                              Name 21  "lunarStruct2"
19                              MemberName 21(lunarStruct2) 0  "i"
20                              MemberName 21(lunarStruct2) 1  "f"
21                              MemberName 21(lunarStruct2) 2  "s1_1"
22                              Name 24  "foo2"
23                              Name 45  "gl_FragColor"
24                              Name 50  "samp2D"
25                              Name 54  "coord"
26                              Name 59  "foo"
27                              Decorate 45(gl_FragColor) Location 0
28                              Decorate 50(samp2D) DescriptorSet 0
29               2:             TypeVoid
30               3:             TypeFunction 2
31               6:             TypeFloat 32
32               7:             TypePointer Function 6(float)
33               9:    6(float) Constant 0
34              10:             TypeInt 32 1
35              11:             TypeInt 32 0
36              12:     11(int) Constant 5
37              13:             TypeArray 10(int) 12
38              14:     11(int) Constant 4
39              15:             TypeArray 6(float) 14
40              16:             TypeVector 6(float) 4
41              17:             TypeArray 16(fvec4) 12
4218(lunarStruct1):             TypeStruct 10(int) 15 17
43              19:     11(int) Constant 7
44              20:             TypeArray 18(lunarStruct1) 19
4521(lunarStruct2):             TypeStruct 13 6(float) 20
46              22:             TypeArray 21(lunarStruct2) 12
47              23:             TypePointer Private 22
48        24(foo2):     23(ptr) Variable Private
49              25:     10(int) Constant 3
50              26:     10(int) Constant 0
51              27:     10(int) Constant 4
52              28:             TypePointer Private 10(int)
53              31:             TypeBool
54              35:     10(int) Constant 2
55              36:     11(int) Constant 0
56              37:             TypePointer Private 6(float)
57              41:     10(int) Constant 1
58              44:             TypePointer Output 16(fvec4)
5945(gl_FragColor):     44(ptr) Variable Output
60              47:             TypeImage 6(float) 2D sampled format:Unknown
61              48:             TypeSampledImage 47
62              49:             TypePointer UniformConstant 48
63      50(samp2D):     49(ptr) Variable UniformConstant
64              52:             TypeVector 6(float) 2
65              53:             TypePointer Input 52(fvec2)
66       54(coord):     53(ptr) Variable Input
67              58:             TypePointer Private 18(lunarStruct1)
68         59(foo):     58(ptr) Variable Private
69         4(main):           2 Function None 3
70               5:             Label
71        8(scale):      7(ptr) Variable Function
72                              Store 8(scale) 9
73              29:     28(ptr) AccessChain 24(foo2) 25 26 27
74              30:     10(int) Load 29
75              32:    31(bool) SGreaterThan 30 26
76                              SelectionMerge 34 None
77                              BranchConditional 32 33 40
78              33:               Label
79              38:     37(ptr)   AccessChain 24(foo2) 25 35 35 35 25 36
80              39:    6(float)   Load 38
81                                Store 8(scale) 39
82                                Branch 34
83              40:               Label
84              42:     37(ptr)   AccessChain 24(foo2) 25 35 35 41 25
85              43:    6(float)   Load 42
86                                Store 8(scale) 43
87                                Branch 34
88              34:             Label
89              46:    6(float) Load 8(scale)
90              51:          48 Load 50(samp2D)
91              55:   52(fvec2) Load 54(coord)
92              56:   16(fvec4) ImageSampleImplicitLod 51 55
93              57:   16(fvec4) VectorTimesScalar 56 46
94                              Store 45(gl_FragColor) 57
95                              Return
96                              FunctionEnd
97