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