yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Ricardo GarciaUpdate SPIRV-Tools known good version22a33d67

main
10.6 KiB212 linesraw
1spv.textureoffset_non_const.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 140
5
6                              Capability Shader
7                              Capability ImageGatherExtended
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint Vertex 4  "main" 10 14 18 26 30 47 52 64 80 92 107 122
11                              Source GLSL 450
12                              SourceExtension  "GL_EXT_texture_offset_non_const"
13                              Name 4  "main"
14                              Name 8  "gl_PerVertex"
15                              MemberName 8(gl_PerVertex) 0  "gl_Position"
16                              Name 10  ""
17                              Name 14  "a_position"
18                              Name 18  "v_color0"
19                              Name 22  "u_sampler"
20                              Name 26  "a_in0"
21                              Name 30  "offsetValue"
22                              Name 34  "buf0"
23                              MemberName 34(buf0) 0  "u_scale"
24                              Name 36  ""
25                              Name 41  "buf1"
26                              MemberName 41(buf1) 0  "u_bias"
27                              Name 43  ""
28                              Name 47  "v_color1"
29                              Name 52  "a_in1"
30                              Name 64  "v_color2"
31                              Name 80  "v_color3"
32                              Name 92  "v_color4"
33                              Name 107  "v_color5"
34                              Name 122  "v_color6"
35                              Decorate 8(gl_PerVertex) Block
36                              MemberDecorate 8(gl_PerVertex) 0 BuiltIn Position
37                              Decorate 14(a_position) Location 0
38                              Decorate 18(v_color0) RelaxedPrecision
39                              Decorate 18(v_color0) Location 0
40                              Decorate 22(u_sampler) Binding 0
41                              Decorate 22(u_sampler) DescriptorSet 0
42                              Decorate 26(a_in0) Location 4
43                              Decorate 30(offsetValue) Location 10
44                              Decorate 34(buf0) Block
45                              MemberDecorate 34(buf0) 0 Offset 0
46                              Decorate 36 Binding 1
47                              Decorate 36 DescriptorSet 0
48                              Decorate 41(buf1) Block
49                              MemberDecorate 41(buf1) 0 Offset 0
50                              Decorate 43 Binding 2
51                              Decorate 43 DescriptorSet 0
52                              Decorate 47(v_color1) RelaxedPrecision
53                              Decorate 47(v_color1) Location 1
54                              Decorate 52(a_in1) Location 5
55                              Decorate 64(v_color2) RelaxedPrecision
56                              Decorate 64(v_color2) Location 2
57                              Decorate 80(v_color3) RelaxedPrecision
58                              Decorate 80(v_color3) Location 3
59                              Decorate 92(v_color4) RelaxedPrecision
60                              Decorate 92(v_color4) Location 4
61                              Decorate 107(v_color5) RelaxedPrecision
62                              Decorate 107(v_color5) Location 5
63                              Decorate 122(v_color6) RelaxedPrecision
64                              Decorate 122(v_color6) Location 6
65               2:             TypeVoid
66               3:             TypeFunction 2
67               6:             TypeFloat 32
68               7:             TypeVector 6(float) 4
69 8(gl_PerVertex):             TypeStruct 7(fvec4)
70               9:             TypePointer Output 8(gl_PerVertex)
71              10:      9(ptr) Variable Output
72              11:             TypeInt 32 1
73              12:     11(int) Constant 0
74              13:             TypePointer Input 7(fvec4)
75  14(a_position):     13(ptr) Variable Input
76              16:             TypePointer Output 7(fvec4)
77    18(v_color0):     16(ptr) Variable Output
78              19:             TypeImage 6(float) 2D sampled format:Unknown
79              20:             TypeSampledImage 19
80              21:             TypePointer UniformConstant 20
81   22(u_sampler):     21(ptr) Variable UniformConstant
82              24:             TypeVector 6(float) 2
83              25:             TypePointer Input 24(fvec2)
84       26(a_in0):     25(ptr) Variable Input
85              28:             TypeVector 11(int) 2
86              29:             TypePointer Input 28(ivec2)
87 30(offsetValue):     29(ptr) Variable Input
88              32:    6(float) Constant 0
89        34(buf0):             TypeStruct 7(fvec4)
90              35:             TypePointer Uniform 34(buf0)
91              36:     35(ptr) Variable Uniform
92              37:             TypePointer Uniform 7(fvec4)
93        41(buf1):             TypeStruct 7(fvec4)
94              42:             TypePointer Uniform 41(buf1)
95              43:     42(ptr) Variable Uniform
96    47(v_color1):     16(ptr) Variable Output
97              51:             TypePointer Input 6(float)
98       52(a_in1):     51(ptr) Variable Input
99    64(v_color2):     16(ptr) Variable Output
100              67:    6(float) Constant 1065353216
101              68:             TypeVector 6(float) 3
102    80(v_color3):     16(ptr) Variable Output
103    92(v_color4):     16(ptr) Variable Output
104   107(v_color5):     16(ptr) Variable Output
105   122(v_color6):     16(ptr) Variable Output
106         4(main):           2 Function None 3
107               5:             Label
108              15:    7(fvec4) Load 14(a_position)
109              17:     16(ptr) AccessChain 10 12
110                              Store 17 15
111              23:          20 Load 22(u_sampler)
112              27:   24(fvec2) Load 26(a_in0)
113              31:   28(ivec2) Load 30(offsetValue)
114              33:    7(fvec4) ImageSampleExplicitLod 23 27 Lod Offset 32 31
115              38:     37(ptr) AccessChain 36 12
116              39:    7(fvec4) Load 38
117              40:    7(fvec4) FMul 33 39
118              44:     37(ptr) AccessChain 43 12
119              45:    7(fvec4) Load 44
120              46:    7(fvec4) FAdd 40 45
121                              Store 18(v_color0) 46
122              48:          20 Load 22(u_sampler)
123              49:   24(fvec2) Load 26(a_in0)
124              50:   28(ivec2) ConvertFToS 49
125              53:    6(float) Load 52(a_in1)
126              54:     11(int) ConvertFToS 53
127              55:   28(ivec2) Load 30(offsetValue)
128              56:          19 Image 48
129              57:    7(fvec4) ImageFetch 56 50 Lod Offset 54 55
130              58:     37(ptr) AccessChain 36 12
131              59:    7(fvec4) Load 58
132              60:    7(fvec4) FMul 57 59
133              61:     37(ptr) AccessChain 43 12
134              62:    7(fvec4) Load 61
135              63:    7(fvec4) FAdd 60 62
136                              Store 47(v_color1) 63
137              65:          20 Load 22(u_sampler)
138              66:   24(fvec2) Load 26(a_in0)
139              69:    6(float) CompositeExtract 66 0
140              70:    6(float) CompositeExtract 66 1
141              71:   68(fvec3) CompositeConstruct 69 70 67
142              72:   28(ivec2) Load 30(offsetValue)
143              73:    7(fvec4) ImageSampleProjExplicitLod 65 71 Lod Offset 32 72
144              74:     37(ptr) AccessChain 36 12
145              75:    7(fvec4) Load 74
146              76:    7(fvec4) FMul 73 75
147              77:     37(ptr) AccessChain 43 12
148              78:    7(fvec4) Load 77
149              79:    7(fvec4) FAdd 76 78
150                              Store 64(v_color2) 79
151              81:          20 Load 22(u_sampler)
152              82:   24(fvec2) Load 26(a_in0)
153              83:    6(float) Load 52(a_in1)
154              84:   28(ivec2) Load 30(offsetValue)
155              85:    7(fvec4) ImageSampleExplicitLod 81 82 Lod Offset 83 84
156              86:     37(ptr) AccessChain 36 12
157              87:    7(fvec4) Load 86
158              88:    7(fvec4) FMul 85 87
159              89:     37(ptr) AccessChain 43 12
160              90:    7(fvec4) Load 89
161              91:    7(fvec4) FAdd 88 90
162                              Store 80(v_color3) 91
163              93:          20 Load 22(u_sampler)
164              94:   24(fvec2) Load 26(a_in0)
165              95:    6(float) CompositeExtract 94 0
166              96:    6(float) CompositeExtract 94 1
167              97:   68(fvec3) CompositeConstruct 95 96 67
168              98:    6(float) Load 52(a_in1)
169              99:   28(ivec2) Load 30(offsetValue)
170             100:    7(fvec4) ImageSampleProjExplicitLod 93 97 Lod Offset 98 99
171             101:     37(ptr) AccessChain 36 12
172             102:    7(fvec4) Load 101
173             103:    7(fvec4) FMul 100 102
174             104:     37(ptr) AccessChain 43 12
175             105:    7(fvec4) Load 104
176             106:    7(fvec4) FAdd 103 105
177                              Store 92(v_color4) 106
178             108:          20 Load 22(u_sampler)
179             109:   24(fvec2) Load 26(a_in0)
180             110:    6(float) Load 52(a_in1)
181             111:   24(fvec2) CompositeConstruct 110 110
182             112:    6(float) Load 52(a_in1)
183             113:   24(fvec2) CompositeConstruct 112 112
184             114:   28(ivec2) Load 30(offsetValue)
185             115:    7(fvec4) ImageSampleExplicitLod 108 109 Grad Offset 111 113 114
186             116:     37(ptr) AccessChain 36 12
187             117:    7(fvec4) Load 116
188             118:    7(fvec4) FMul 115 117
189             119:     37(ptr) AccessChain 43 12
190             120:    7(fvec4) Load 119
191             121:    7(fvec4) FAdd 118 120
192                              Store 107(v_color5) 121
193             123:          20 Load 22(u_sampler)
194             124:   24(fvec2) Load 26(a_in0)
195             125:    6(float) CompositeExtract 124 0
196             126:    6(float) CompositeExtract 124 1
197             127:   68(fvec3) CompositeConstruct 125 126 67
198             128:    6(float) Load 52(a_in1)
199             129:   24(fvec2) CompositeConstruct 128 128
200             130:    6(float) Load 52(a_in1)
201             131:   24(fvec2) CompositeConstruct 130 130
202             132:   28(ivec2) Load 30(offsetValue)
203             133:    7(fvec4) ImageSampleProjExplicitLod 123 127 Grad Offset 129 131 132
204             134:     37(ptr) AccessChain 36 12
205             135:    7(fvec4) Load 134
206             136:    7(fvec4) FMul 133 135
207             137:     37(ptr) AccessChain 43 12
208             138:    7(fvec4) Load 137
209             139:    7(fvec4) FAdd 136 138
210                              Store 122(v_color6) 139
211                              Return
212                              FunctionEnd