blob: f8e75ebdacfbb3689f3be762763cca6b90eba503 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.140.frag
John Kessenichcc16fa02015-12-10 18:01:54 -07002// Module Version 10000
3// Generated by (magic number): 80001
Dejan Mircevskied55bcd2016-01-19 21:13:38 -05004// Id's are bound by 101
John Kessenichcc16fa02015-12-10 18:01:54 -07005
6 Capability Shader
John Kessenich92187592016-02-01 13:45:25 -07007 Capability ClipDistance
John Kessenichb0364dc2016-02-14 17:37:30 -07008 Capability SampledRect
9 Capability SampledBuffer
John Kessenich5e801132016-02-15 11:09:46 -070010 Capability ImageQuery
John Kessenichcc16fa02015-12-10 18:01:54 -070011 1: ExtInstImport "GLSL.std.450"
12 MemoryModel Logical GLSL450
John Kessenich7ba63412015-12-20 17:37:07 -070013 EntryPoint Fragment 4 "main" 16 28 33 43
John Kessenich6c292d32016-02-15 20:58:50 -070014 ExecutionMode 4 OriginUpperLeft
John Kessenichcc16fa02015-12-10 18:01:54 -070015 Source GLSL 140
16 Name 4 "main"
17 Name 8 "foo("
18 Name 11 "i1"
19 Name 16 "gl_FrontFacing"
20 Name 24 "i2"
21 Name 28 "o"
22 Name 33 "gl_ClipDistance"
23 Name 43 "k"
24 Name 55 "sampR"
25 Name 63 "sampB"
Dejan Mircevskied55bcd2016-01-19 21:13:38 -050026 Name 87 "samp2Da"
27 Name 92 "bn"
28 MemberName 92(bn) 0 "matra"
29 MemberName 92(bn) 1 "matca"
30 MemberName 92(bn) 2 "matr"
31 MemberName 92(bn) 3 "matc"
32 MemberName 92(bn) 4 "matrdef"
33 Name 94 ""
34 Name 97 "bi"
35 MemberName 97(bi) 0 "v"
36 Name 100 "bname"
John Kessenichcc16fa02015-12-10 18:01:54 -070037 Decorate 16(gl_FrontFacing) BuiltIn FrontFacing
38 Decorate 33(gl_ClipDistance) BuiltIn ClipDistance
John Kessenich6c292d32016-02-15 20:58:50 -070039 Decorate 55(sampR) DescriptorSet 0
40 Decorate 63(sampB) DescriptorSet 0
41 Decorate 87(samp2Da) DescriptorSet 0
John Kessenichc9e0a422015-12-29 21:27:24 -070042 Decorate 90 ArrayStride 64
Dejan Mircevskied55bcd2016-01-19 21:13:38 -050043 Decorate 91 ArrayStride 64
44 MemberDecorate 92(bn) 0 RowMajor
45 MemberDecorate 92(bn) 0 Offset 0
46 MemberDecorate 92(bn) 0 MatrixStride 16
47 MemberDecorate 92(bn) 1 ColMajor
48 MemberDecorate 92(bn) 1 Offset 256
49 MemberDecorate 92(bn) 1 MatrixStride 16
50 MemberDecorate 92(bn) 2 RowMajor
51 MemberDecorate 92(bn) 2 Offset 512
52 MemberDecorate 92(bn) 2 MatrixStride 16
53 MemberDecorate 92(bn) 3 ColMajor
54 MemberDecorate 92(bn) 3 Offset 576
55 MemberDecorate 92(bn) 3 MatrixStride 16
56 MemberDecorate 92(bn) 4 RowMajor
57 MemberDecorate 92(bn) 4 Offset 640
58 MemberDecorate 92(bn) 4 MatrixStride 16
59 Decorate 92(bn) Block
John Kessenich6c292d32016-02-15 20:58:50 -070060 Decorate 94 DescriptorSet 0
Dejan Mircevskied55bcd2016-01-19 21:13:38 -050061 Decorate 96 ArrayStride 16
62 MemberDecorate 97(bi) 0 Offset 0
63 Decorate 97(bi) Block
John Kessenich6c292d32016-02-15 20:58:50 -070064 Decorate 100(bname) DescriptorSet 0
John Kessenichcc16fa02015-12-10 18:01:54 -070065 2: TypeVoid
66 3: TypeFunction 2
67 6: TypeFloat 32
68 7: TypeFunction 6(float)
69 10: TypePointer Private 6(float)
70 11(i1): 10(ptr) Variable Private
71 12: TypePointer Function 6(float)
72 14: TypeBool
73 15: TypePointer Input 14(bool)
7416(gl_FrontFacing): 15(ptr) Variable Input
75 20: 6(float) Constant 3221225472
76 22: 6(float) Constant 1073741824
77 24(i2): 10(ptr) Variable Private
78 25: 6(float) Constant 1120665600
79 26: TypeVector 6(float) 4
80 27: TypePointer Output 26(fvec4)
81 28(o): 27(ptr) Variable Output
82 29: TypeInt 32 0
83 30: 29(int) Constant 5
84 31: TypeArray 6(float) 30
85 32: TypePointer Input 31
8633(gl_ClipDistance): 32(ptr) Variable Input
87 34: TypeInt 32 1
88 35: 34(int) Constant 2
89 36: TypePointer Input 6(float)
90 39: 29(int) Constant 1
91 40: TypePointer Output 6(float)
92 42: TypePointer Input 26(fvec4)
93 43(k): 42(ptr) Variable Input
94 45: TypeVector 34(int) 4
95 50: 29(int) Constant 2
96 52: TypeImage 6(float) Rect sampled format:Unknown
97 53: TypeSampledImage 52
98 54: TypePointer UniformConstant 53
99 55(sampR): 54(ptr) Variable UniformConstant
100 58: TypeVector 34(int) 2
101 60: TypeImage 34(int) Buffer sampled format:Unknown
102 61: TypeSampledImage 60
103 62: TypePointer UniformConstant 61
104 63(sampB): 62(ptr) Variable UniformConstant
105 69: TypeVector 6(float) 2
106 72: 6(float) Constant 1120403456
107 74: 29(int) Constant 3
Dejan Mircevskied55bcd2016-01-19 21:13:38 -0500108 83: TypeImage 6(float) 2D sampled format:Unknown
109 84: TypeSampledImage 83
110 85: TypeArray 84 74
111 86: TypePointer UniformConstant 85
112 87(samp2Da): 86(ptr) Variable UniformConstant
113 88: TypeMatrix 26(fvec4) 4
114 89: 29(int) Constant 4
115 90: TypeArray 88 89
116 91: TypeArray 88 89
117 92(bn): TypeStruct 90 91 88 88 88
118 93: TypePointer Uniform 92(bn)
119 94: 93(ptr) Variable Uniform
120 95: TypeVector 6(float) 3
121 96: TypeArray 95(fvec3) 50
122 97(bi): TypeStruct 96
123 98: TypeArray 97(bi) 89
124 99: TypePointer Uniform 98
125 100(bname): 99(ptr) Variable Uniform
John Kessenichcc16fa02015-12-10 18:01:54 -0700126 4(main): 2 Function None 3
127 5: Label
128 13: 12(ptr) Variable Function
129 17: 14(bool) Load 16(gl_FrontFacing)
130 SelectionMerge 19 None
131 BranchConditional 17 18 21
132 18: Label
133 Store 13 20
134 Branch 19
135 21: Label
136 Store 13 22
137 Branch 19
138 19: Label
139 23: 6(float) Load 13
140 Store 11(i1) 23
141 Store 24(i2) 25
142 37: 36(ptr) AccessChain 33(gl_ClipDistance) 35
143 38: 6(float) Load 37
144 41: 40(ptr) AccessChain 28(o) 39
145 Store 41 38
146 44: 26(fvec4) Load 43(k)
147 46: 45(ivec4) ConvertFToS 44
148 47: 34(int) CompositeExtract 46 0
149 48: 36(ptr) AccessChain 33(gl_ClipDistance) 47
150 49: 6(float) Load 48
151 51: 40(ptr) AccessChain 28(o) 50
152 Store 51 49
153 56: 53 Load 55(sampR)
154 57: 52 Image 56
155 59: 58(ivec2) ImageQuerySize 57
156 64: 61 Load 63(sampB)
157 65: 60 Image 64
158 66: 34(int) ImageQuerySize 65
159 67: 58(ivec2) CompositeConstruct 66 66
160 68: 58(ivec2) IAdd 59 67
161 70: 69(fvec2) ConvertSToF 68
162 71: 6(float) CompositeExtract 70 0
163 73: 6(float) FDiv 71 72
164 75: 40(ptr) AccessChain 28(o) 74
165 Store 75 73
166 76: 6(float) FunctionCall 8(foo()
167 77: 40(ptr) AccessChain 28(o) 50
168 Store 77 76
169 Return
170 FunctionEnd
171 8(foo(): 6(float) Function None 7
172 9: Label
173 78: 6(float) Load 11(i1)
174 79: 6(float) Load 24(i2)
175 80: 6(float) FAdd 78 79
176 ReturnValue 80
177 FunctionEnd