1spv.subpass.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 67
5
6                              Capability Shader
7                              Capability InputAttachment
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint Fragment 4  "main" 15 27 53
11                              ExecutionMode 4 OriginUpperLeft
12                              Source GLSL 400
13                              Name 4  "main"
14                              Name 11  "foo(iIPM1;"
15                              Name 10  "sb"
16                              Name 15  "icolor"
17                              Name 27  "color"
18                              Name 30  "sub"
19                              Name 35  "subMS"
20                              Name 42  "isub"
21                              Name 45  "isubMS"
22                              Name 53  "ucolor"
23                              Name 56  "usub"
24                              Name 61  "usubMS"
25                              Decorate 30(sub) DescriptorSet 0
26                              Decorate 30(sub) InputAttachmentIndex 1
27                              Decorate 35(subMS) DescriptorSet 0
28                              Decorate 35(subMS) InputAttachmentIndex 2
29                              Decorate 42(isub) DescriptorSet 0
30                              Decorate 42(isub) InputAttachmentIndex 3
31                              Decorate 45(isubMS) DescriptorSet 0
32                              Decorate 45(isubMS) InputAttachmentIndex 4
33                              Decorate 56(usub) DescriptorSet 0
34                              Decorate 56(usub) InputAttachmentIndex 5
35                              Decorate 61(usubMS) DescriptorSet 0
36                              Decorate 61(usubMS) InputAttachmentIndex 6
37               2:             TypeVoid
38               3:             TypeFunction 2
39               6:             TypeInt 32 1
40               7:             TypeImage 6(int) SubpassData multi-sampled nonsampled format:Unknown
41               8:             TypePointer UniformConstant 7
42               9:             TypeFunction 2 8(ptr)
43              13:             TypeVector 6(int) 4
44              14:             TypePointer Output 13(ivec4)
45      15(icolor):     14(ptr) Variable Output
46              17:      6(int) Constant 3
47              18:      6(int) Constant 0
48              19:             TypeVector 6(int) 2
49              20:   19(ivec2) ConstantComposite 18 18
50              24:             TypeFloat 32
51              25:             TypeVector 24(float) 4
52              26:             TypePointer Output 25(fvec4)
53       27(color):     26(ptr) Variable Output
54              28:             TypeImage 24(float) SubpassData nonsampled format:Unknown
55              29:             TypePointer UniformConstant 28
56         30(sub):     29(ptr) Variable UniformConstant
57              33:             TypeImage 24(float) SubpassData multi-sampled nonsampled format:Unknown
58              34:             TypePointer UniformConstant 33
59       35(subMS):     34(ptr) Variable UniformConstant
60              40:             TypeImage 6(int) SubpassData nonsampled format:Unknown
61              41:             TypePointer UniformConstant 40
62        42(isub):     41(ptr) Variable UniformConstant
63      45(isubMS):      8(ptr) Variable UniformConstant
64              50:             TypeInt 32 0
65              51:             TypeVector 50(int) 4
66              52:             TypePointer Output 51(ivec4)
67      53(ucolor):     52(ptr) Variable Output
68              54:             TypeImage 50(int) SubpassData nonsampled format:Unknown
69              55:             TypePointer UniformConstant 54
70        56(usub):     55(ptr) Variable UniformConstant
71              59:             TypeImage 50(int) SubpassData multi-sampled nonsampled format:Unknown
72              60:             TypePointer UniformConstant 59
73      61(usubMS):     60(ptr) Variable UniformConstant
74         4(main):           2 Function None 3
75               5:             Label
76              31:          28 Load 30(sub)
77              32:   25(fvec4) ImageRead 31 20
78                              Store 27(color) 32
79              36:          33 Load 35(subMS)
80              37:   25(fvec4) ImageRead 36 20 Sample 17
81              38:   25(fvec4) Load 27(color)
82              39:   25(fvec4) FAdd 38 37
83                              Store 27(color) 39
84              43:          40 Load 42(isub)
85              44:   13(ivec4) ImageRead 43 20
86                              Store 15(icolor) 44
87              46:           7 Load 45(isubMS)
88              47:   13(ivec4) ImageRead 46 20 Sample 17
89              48:   13(ivec4) Load 15(icolor)
90              49:   13(ivec4) IAdd 48 47
91                              Store 15(icolor) 49
92              57:          54 Load 56(usub)
93              58:   51(ivec4) ImageRead 57 20
94                              Store 53(ucolor) 58
95              62:          59 Load 61(usubMS)
96              63:   51(ivec4) ImageRead 62 20 Sample 17
97              64:   51(ivec4) Load 53(ucolor)
98              65:   51(ivec4) IAdd 64 63
99                              Store 53(ucolor) 65
100              66:           2 FunctionCall 11(foo(iIPM1;) 45(isubMS)
101                              Return
102                              FunctionEnd
103  11(foo(iIPM1;):           2 Function None 9
104          10(sb):      8(ptr) FunctionParameter
105              12:             Label
106              16:           7 Load 10(sb)
107              21:   13(ivec4) ImageRead 16 20 Sample 17
108              22:   13(ivec4) Load 15(icolor)
109              23:   13(ivec4) IAdd 22 21
110                              Store 15(icolor) 23
111                              Return
112                              FunctionEnd
113