blob: d6f6332b16527bb2fff1a8cc694f199a11985e77 [file] [log] [blame]
John Kessenichcc16fa02015-12-10 18:01:54 -07001spv.140.frag
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
John Kessenich71b5da62018-02-06 08:06:36 -07003// Generated by (magic number): 80004
John Kessenich433e9ff2017-01-26 20:31:11 -07004// Id's are bound by 96
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 Kessenich433e9ff2017-01-26 20:31:11 -070013 EntryPoint Fragment 4 "main" 14 23 28 38
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"
John Kessenich433e9ff2017-01-26 20:31:11 -070019 Name 14 "gl_FrontFacing"
20 Name 19 "i2"
21 Name 23 "o"
22 Name 28 "gl_ClipDistance"
23 Name 38 "k"
24 Name 50 "sampR"
25 Name 58 "sampB"
26 Name 82 "samp2Da"
27 Name 87 "bn"
28 MemberName 87(bn) 0 "matra"
29 MemberName 87(bn) 1 "matca"
30 MemberName 87(bn) 2 "matr"
31 MemberName 87(bn) 3 "matc"
32 MemberName 87(bn) 4 "matrdef"
33 Name 89 ""
34 Name 92 "bi"
35 MemberName 92(bi) 0 "v"
36 Name 95 "bname"
37 Decorate 14(gl_FrontFacing) BuiltIn FrontFacing
38 Decorate 28(gl_ClipDistance) BuiltIn ClipDistance
39 Decorate 50(sampR) DescriptorSet 0
40 Decorate 58(sampB) DescriptorSet 0
41 Decorate 82(samp2Da) DescriptorSet 0
42 Decorate 85 ArrayStride 64
43 Decorate 86 ArrayStride 64
44 MemberDecorate 87(bn) 0 RowMajor
45 MemberDecorate 87(bn) 0 Offset 0
46 MemberDecorate 87(bn) 0 MatrixStride 16
47 MemberDecorate 87(bn) 1 ColMajor
48 MemberDecorate 87(bn) 1 Offset 256
49 MemberDecorate 87(bn) 1 MatrixStride 16
50 MemberDecorate 87(bn) 2 RowMajor
51 MemberDecorate 87(bn) 2 Offset 512
52 MemberDecorate 87(bn) 2 MatrixStride 16
53 MemberDecorate 87(bn) 3 ColMajor
54 MemberDecorate 87(bn) 3 Offset 576
55 MemberDecorate 87(bn) 3 MatrixStride 16
56 MemberDecorate 87(bn) 4 RowMajor
John Kessenich7225a1c2017-02-13 09:09:04 -070057 MemberDecorate 87(bn) 4 Offset 1024
John Kessenich433e9ff2017-01-26 20:31:11 -070058 MemberDecorate 87(bn) 4 MatrixStride 16
59 Decorate 87(bn) Block
60 Decorate 89 DescriptorSet 0
61 Decorate 91 ArrayStride 16
62 MemberDecorate 92(bi) 0 Offset 0
63 Decorate 92(bi) Block
64 Decorate 95(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
John Kessenich433e9ff2017-01-26 20:31:11 -070071 12: TypeBool
72 13: TypePointer Input 12(bool)
7314(gl_FrontFacing): 13(ptr) Variable Input
74 16: 6(float) Constant 3221225472
75 17: 6(float) Constant 1073741824
76 19(i2): 10(ptr) Variable Private
77 20: 6(float) Constant 1120665600
78 21: TypeVector 6(float) 4
79 22: TypePointer Output 21(fvec4)
80 23(o): 22(ptr) Variable Output
81 24: TypeInt 32 0
82 25: 24(int) Constant 5
83 26: TypeArray 6(float) 25
84 27: TypePointer Input 26
8528(gl_ClipDistance): 27(ptr) Variable Input
86 29: TypeInt 32 1
87 30: 29(int) Constant 2
88 31: TypePointer Input 6(float)
89 34: 24(int) Constant 1
90 35: TypePointer Output 6(float)
91 37: TypePointer Input 21(fvec4)
92 38(k): 37(ptr) Variable Input
93 40: TypeVector 29(int) 4
94 45: 24(int) Constant 2
95 47: TypeImage 6(float) Rect sampled format:Unknown
96 48: TypeSampledImage 47
97 49: TypePointer UniformConstant 48
98 50(sampR): 49(ptr) Variable UniformConstant
99 53: TypeVector 29(int) 2
100 55: TypeImage 29(int) Buffer sampled format:Unknown
101 56: TypeSampledImage 55
102 57: TypePointer UniformConstant 56
103 58(sampB): 57(ptr) Variable UniformConstant
104 64: TypeVector 6(float) 2
105 67: 6(float) Constant 1120403456
106 69: 24(int) Constant 3
107 78: TypeImage 6(float) 2D sampled format:Unknown
108 79: TypeSampledImage 78
109 80: TypeArray 79 69
110 81: TypePointer UniformConstant 80
111 82(samp2Da): 81(ptr) Variable UniformConstant
112 83: TypeMatrix 21(fvec4) 4
113 84: 24(int) Constant 4
114 85: TypeArray 83 84
115 86: TypeArray 83 84
116 87(bn): TypeStruct 85 86 83 83 83
117 88: TypePointer Uniform 87(bn)
118 89: 88(ptr) Variable Uniform
119 90: TypeVector 6(float) 3
120 91: TypeArray 90(fvec3) 45
121 92(bi): TypeStruct 91
122 93: TypeArray 92(bi) 84
123 94: TypePointer Uniform 93
124 95(bname): 94(ptr) Variable Uniform
John Kessenichcc16fa02015-12-10 18:01:54 -0700125 4(main): 2 Function None 3
126 5: Label
John Kessenich433e9ff2017-01-26 20:31:11 -0700127 15: 12(bool) Load 14(gl_FrontFacing)
128 18: 6(float) Select 15 16 17
129 Store 11(i1) 18
130 Store 19(i2) 20
131 32: 31(ptr) AccessChain 28(gl_ClipDistance) 30
132 33: 6(float) Load 32
133 36: 35(ptr) AccessChain 23(o) 34
134 Store 36 33
135 39: 21(fvec4) Load 38(k)
136 41: 40(ivec4) ConvertFToS 39
137 42: 29(int) CompositeExtract 41 0
138 43: 31(ptr) AccessChain 28(gl_ClipDistance) 42
139 44: 6(float) Load 43
140 46: 35(ptr) AccessChain 23(o) 45
141 Store 46 44
142 51: 48 Load 50(sampR)
143 52: 47 Image 51
144 54: 53(ivec2) ImageQuerySize 52
145 59: 56 Load 58(sampB)
146 60: 55 Image 59
147 61: 29(int) ImageQuerySize 60
148 62: 53(ivec2) CompositeConstruct 61 61
149 63: 53(ivec2) IAdd 54 62
150 65: 64(fvec2) ConvertSToF 63
151 66: 6(float) CompositeExtract 65 0
152 68: 6(float) FDiv 66 67
153 70: 35(ptr) AccessChain 23(o) 69
154 Store 70 68
155 71: 6(float) FunctionCall 8(foo()
156 72: 35(ptr) AccessChain 23(o) 45
157 Store 72 71
John Kessenichcc16fa02015-12-10 18:01:54 -0700158 Return
159 FunctionEnd
160 8(foo(): 6(float) Function None 7
161 9: Label
John Kessenich433e9ff2017-01-26 20:31:11 -0700162 73: 6(float) Load 11(i1)
163 74: 6(float) Load 19(i2)
164 75: 6(float) FAdd 73 74
165 ReturnValue 75
John Kessenichcc16fa02015-12-10 18:01:54 -0700166 FunctionEnd