yum-mirror/glslang

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

Ricardo GarciaUpdate SPIRV-Tools known good version22a33d67

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