1617a3babSopenharmony_cispv.ext.meshShaderBuiltinsShadingRate.mesh
2617a3babSopenharmony_ci// Module Version 10400
3617a3babSopenharmony_ci// Generated by (magic number): 8000b
4617a3babSopenharmony_ci// Id's are bound by 164
5617a3babSopenharmony_ci
6617a3babSopenharmony_ci                              Capability ClipDistance
7617a3babSopenharmony_ci                              Capability CullDistance
8617a3babSopenharmony_ci                              Capability FragmentShadingRateKHR
9617a3babSopenharmony_ci                              Capability DrawParameters
10617a3babSopenharmony_ci                              Capability MultiView
11617a3babSopenharmony_ci                              Capability MeshShadingEXT
12617a3babSopenharmony_ci                              Extension  "SPV_EXT_mesh_shader"
13617a3babSopenharmony_ci                              Extension  "SPV_KHR_fragment_shading_rate"
14617a3babSopenharmony_ci               1:             ExtInstImport  "GLSL.std.450"
15617a3babSopenharmony_ci                              MemoryModel Logical GLSL450
16617a3babSopenharmony_ci                              EntryPoint MeshEXT 4  "main" 13 19 24 41 93 140 158 161
17617a3babSopenharmony_ci                              ExecutionMode 4 LocalSize 32 1 1
18617a3babSopenharmony_ci                              ExecutionMode 4 OutputVertices 81
19617a3babSopenharmony_ci                              ExecutionMode 4 OutputPrimitivesNV 32
20617a3babSopenharmony_ci                              ExecutionMode 4 OutputTrianglesNV
21617a3babSopenharmony_ci                              Source GLSL 460
22617a3babSopenharmony_ci                              SourceExtension  "GL_ARB_shader_draw_parameters"
23617a3babSopenharmony_ci                              SourceExtension  "GL_EXT_fragment_shading_rate"
24617a3babSopenharmony_ci                              SourceExtension  "GL_EXT_mesh_shader"
25617a3babSopenharmony_ci                              SourceExtension  "GL_EXT_multiview"
26617a3babSopenharmony_ci                              Name 4  "main"
27617a3babSopenharmony_ci                              Name 6  "testAdditionalBuiltins("
28617a3babSopenharmony_ci                              Name 10  "iid"
29617a3babSopenharmony_ci                              Name 13  "gl_LocalInvocationID"
30617a3babSopenharmony_ci                              Name 18  "gid"
31617a3babSopenharmony_ci                              Name 19  "gl_WorkGroupID"
32617a3babSopenharmony_ci                              Name 23  "numWorkGrous"
33617a3babSopenharmony_ci                              Name 24  "gl_NumWorkGroups"
34617a3babSopenharmony_ci                              Name 26  "vertexCount"
35617a3babSopenharmony_ci                              Name 28  "primitiveCount"
36617a3babSopenharmony_ci                              Name 38  "gl_MeshPerVertexEXT"
37617a3babSopenharmony_ci                              MemberName 38(gl_MeshPerVertexEXT) 0  "gl_Position"
38617a3babSopenharmony_ci                              MemberName 38(gl_MeshPerVertexEXT) 1  "gl_PointSize"
39617a3babSopenharmony_ci                              MemberName 38(gl_MeshPerVertexEXT) 2  "gl_ClipDistance"
40617a3babSopenharmony_ci                              MemberName 38(gl_MeshPerVertexEXT) 3  "gl_CullDistance"
41617a3babSopenharmony_ci                              Name 41  "gl_MeshVerticesEXT"
42617a3babSopenharmony_ci                              Name 90  "gl_MeshPerPrimitiveEXT"
43617a3babSopenharmony_ci                              MemberName 90(gl_MeshPerPrimitiveEXT) 0  "gl_PrimitiveID"
44617a3babSopenharmony_ci                              MemberName 90(gl_MeshPerPrimitiveEXT) 1  "gl_Layer"
45617a3babSopenharmony_ci                              MemberName 90(gl_MeshPerPrimitiveEXT) 2  "gl_ViewportIndex"
46617a3babSopenharmony_ci                              MemberName 90(gl_MeshPerPrimitiveEXT) 3  "gl_CullPrimitiveEXT"
47617a3babSopenharmony_ci                              MemberName 90(gl_MeshPerPrimitiveEXT) 4  "gl_PrimitiveShadingRateEXT"
48617a3babSopenharmony_ci                              Name 93  "gl_MeshPrimitivesEXT"
49617a3babSopenharmony_ci                              Name 140  "gl_PrimitiveTriangleIndicesEXT"
50617a3babSopenharmony_ci                              Name 156  "id"
51617a3babSopenharmony_ci                              Name 158  "gl_DrawIDARB"
52617a3babSopenharmony_ci                              Name 160  "viewIdx"
53617a3babSopenharmony_ci                              Name 161  "gl_ViewIndex"
54617a3babSopenharmony_ci                              Decorate 13(gl_LocalInvocationID) BuiltIn LocalInvocationId
55617a3babSopenharmony_ci                              Decorate 19(gl_WorkGroupID) BuiltIn WorkgroupId
56617a3babSopenharmony_ci                              Decorate 24(gl_NumWorkGroups) BuiltIn NumWorkgroups
57617a3babSopenharmony_ci                              MemberDecorate 38(gl_MeshPerVertexEXT) 0 BuiltIn Position
58617a3babSopenharmony_ci                              MemberDecorate 38(gl_MeshPerVertexEXT) 1 BuiltIn PointSize
59617a3babSopenharmony_ci                              MemberDecorate 38(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance
60617a3babSopenharmony_ci                              MemberDecorate 38(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance
61617a3babSopenharmony_ci                              Decorate 38(gl_MeshPerVertexEXT) Block
62617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 0 PerPrimitiveNV
63617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 0 BuiltIn PrimitiveId
64617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 1 PerPrimitiveNV
65617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 1 BuiltIn Layer
66617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 2 PerPrimitiveNV
67617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 2 BuiltIn ViewportIndex
68617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 3 PerPrimitiveNV
69617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 3 BuiltIn CullPrimitiveEXT
70617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 4 PerPrimitiveNV
71617a3babSopenharmony_ci                              MemberDecorate 90(gl_MeshPerPrimitiveEXT) 4 BuiltIn PrimitiveShadingRateKHR
72617a3babSopenharmony_ci                              Decorate 90(gl_MeshPerPrimitiveEXT) Block
73617a3babSopenharmony_ci                              Decorate 140(gl_PrimitiveTriangleIndicesEXT) BuiltIn PrimitiveTriangleIndicesEXT
74617a3babSopenharmony_ci                              Decorate 158(gl_DrawIDARB) BuiltIn DrawIndex
75617a3babSopenharmony_ci                              Decorate 161(gl_ViewIndex) BuiltIn ViewIndex
76617a3babSopenharmony_ci                              Decorate 163 BuiltIn WorkgroupSize
77617a3babSopenharmony_ci               2:             TypeVoid
78617a3babSopenharmony_ci               3:             TypeFunction 2
79617a3babSopenharmony_ci               8:             TypeInt 32 0
80617a3babSopenharmony_ci               9:             TypePointer Function 8(int)
81617a3babSopenharmony_ci              11:             TypeVector 8(int) 3
82617a3babSopenharmony_ci              12:             TypePointer Input 11(ivec3)
83617a3babSopenharmony_ci13(gl_LocalInvocationID):     12(ptr) Variable Input
84617a3babSopenharmony_ci              14:      8(int) Constant 0
85617a3babSopenharmony_ci              15:             TypePointer Input 8(int)
86617a3babSopenharmony_ci19(gl_WorkGroupID):     12(ptr) Variable Input
87617a3babSopenharmony_ci              22:             TypePointer Function 11(ivec3)
88617a3babSopenharmony_ci24(gl_NumWorkGroups):     12(ptr) Variable Input
89617a3babSopenharmony_ci              27:      8(int) Constant 81
90617a3babSopenharmony_ci              29:      8(int) Constant 32
91617a3babSopenharmony_ci              32:             TypeFloat 32
92617a3babSopenharmony_ci              33:             TypeVector 32(float) 4
93617a3babSopenharmony_ci              34:      8(int) Constant 4
94617a3babSopenharmony_ci              35:             TypeArray 32(float) 34
95617a3babSopenharmony_ci              36:      8(int) Constant 3
96617a3babSopenharmony_ci              37:             TypeArray 32(float) 36
97617a3babSopenharmony_ci38(gl_MeshPerVertexEXT):             TypeStruct 33(fvec4) 32(float) 35 37
98617a3babSopenharmony_ci              39:             TypeArray 38(gl_MeshPerVertexEXT) 27
99617a3babSopenharmony_ci              40:             TypePointer Output 39
100617a3babSopenharmony_ci41(gl_MeshVerticesEXT):     40(ptr) Variable Output
101617a3babSopenharmony_ci              43:             TypeInt 32 1
102617a3babSopenharmony_ci              44:     43(int) Constant 0
103617a3babSopenharmony_ci              45:   32(float) Constant 1065353216
104617a3babSopenharmony_ci              46:   33(fvec4) ConstantComposite 45 45 45 45
105617a3babSopenharmony_ci              47:             TypePointer Output 33(fvec4)
106617a3babSopenharmony_ci              50:     43(int) Constant 1
107617a3babSopenharmony_ci              51:   32(float) Constant 1073741824
108617a3babSopenharmony_ci              52:             TypePointer Output 32(float)
109617a3babSopenharmony_ci              55:     43(int) Constant 2
110617a3babSopenharmony_ci              56:     43(int) Constant 3
111617a3babSopenharmony_ci              57:   32(float) Constant 1077936128
112617a3babSopenharmony_ci              60:   32(float) Constant 1082130432
113617a3babSopenharmony_ci              62:      8(int) Constant 1
114617a3babSopenharmony_ci              63:      8(int) Constant 264
115617a3babSopenharmony_ci              64:      8(int) Constant 2
116617a3babSopenharmony_ci              89:             TypeBool
117617a3babSopenharmony_ci90(gl_MeshPerPrimitiveEXT):             TypeStruct 43(int) 43(int) 43(int) 89(bool) 43(int)
118617a3babSopenharmony_ci              91:             TypeArray 90(gl_MeshPerPrimitiveEXT) 29
119617a3babSopenharmony_ci              92:             TypePointer Output 91
120617a3babSopenharmony_ci93(gl_MeshPrimitivesEXT):     92(ptr) Variable Output
121617a3babSopenharmony_ci              95:     43(int) Constant 6
122617a3babSopenharmony_ci              96:             TypePointer Output 43(int)
123617a3babSopenharmony_ci              99:     43(int) Constant 7
124617a3babSopenharmony_ci             102:     43(int) Constant 8
125617a3babSopenharmony_ci             105:    89(bool) ConstantFalse
126617a3babSopenharmony_ci             106:             TypePointer Output 89(bool)
127617a3babSopenharmony_ci             109:     43(int) Constant 4
128617a3babSopenharmony_ci             138:             TypeArray 11(ivec3) 29
129617a3babSopenharmony_ci             139:             TypePointer Output 138
130617a3babSopenharmony_ci140(gl_PrimitiveTriangleIndicesEXT):    139(ptr) Variable Output
131617a3babSopenharmony_ci             141:      8(int) Constant 257
132617a3babSopenharmony_ci             142:   11(ivec3) ConstantComposite 141 141 141
133617a3babSopenharmony_ci             143:             TypePointer Output 11(ivec3)
134617a3babSopenharmony_ci             147:   11(ivec3) ConstantComposite 64 64 64
135617a3babSopenharmony_ci             155:             TypePointer Function 43(int)
136617a3babSopenharmony_ci             157:             TypePointer Input 43(int)
137617a3babSopenharmony_ci158(gl_DrawIDARB):    157(ptr) Variable Input
138617a3babSopenharmony_ci161(gl_ViewIndex):    157(ptr) Variable Input
139617a3babSopenharmony_ci             163:   11(ivec3) ConstantComposite 29 62 62
140617a3babSopenharmony_ci         4(main):           2 Function None 3
141617a3babSopenharmony_ci               5:             Label
142617a3babSopenharmony_ci         10(iid):      9(ptr) Variable Function
143617a3babSopenharmony_ci         18(gid):      9(ptr) Variable Function
144617a3babSopenharmony_ci23(numWorkGrous):     22(ptr) Variable Function
145617a3babSopenharmony_ci 26(vertexCount):      9(ptr) Variable Function
146617a3babSopenharmony_ci28(primitiveCount):      9(ptr) Variable Function
147617a3babSopenharmony_ci              16:     15(ptr) AccessChain 13(gl_LocalInvocationID) 14
148617a3babSopenharmony_ci              17:      8(int) Load 16
149617a3babSopenharmony_ci                              Store 10(iid) 17
150617a3babSopenharmony_ci              20:     15(ptr) AccessChain 19(gl_WorkGroupID) 14
151617a3babSopenharmony_ci              21:      8(int) Load 20
152617a3babSopenharmony_ci                              Store 18(gid) 21
153617a3babSopenharmony_ci              25:   11(ivec3) Load 24(gl_NumWorkGroups)
154617a3babSopenharmony_ci                              Store 23(numWorkGrous) 25
155617a3babSopenharmony_ci                              Store 26(vertexCount) 27
156617a3babSopenharmony_ci                              Store 28(primitiveCount) 29
157617a3babSopenharmony_ci              30:      8(int) Load 26(vertexCount)
158617a3babSopenharmony_ci              31:      8(int) Load 28(primitiveCount)
159617a3babSopenharmony_ci                              SetMeshOutputsEXT 30 31
160617a3babSopenharmony_ci              42:      8(int) Load 10(iid)
161617a3babSopenharmony_ci              48:     47(ptr) AccessChain 41(gl_MeshVerticesEXT) 42 44
162617a3babSopenharmony_ci                              Store 48 46
163617a3babSopenharmony_ci              49:      8(int) Load 10(iid)
164617a3babSopenharmony_ci              53:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 49 50
165617a3babSopenharmony_ci                              Store 53 51
166617a3babSopenharmony_ci              54:      8(int) Load 10(iid)
167617a3babSopenharmony_ci              58:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 54 55 56
168617a3babSopenharmony_ci                              Store 58 57
169617a3babSopenharmony_ci              59:      8(int) Load 10(iid)
170617a3babSopenharmony_ci              61:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 59 56 55
171617a3babSopenharmony_ci                              Store 61 60
172617a3babSopenharmony_ci                              MemoryBarrier 62 63
173617a3babSopenharmony_ci                              ControlBarrier 64 64 63
174617a3babSopenharmony_ci              65:      8(int) Load 10(iid)
175617a3babSopenharmony_ci              66:      8(int) IAdd 65 62
176617a3babSopenharmony_ci              67:      8(int) Load 10(iid)
177617a3babSopenharmony_ci              68:     47(ptr) AccessChain 41(gl_MeshVerticesEXT) 67 44
178617a3babSopenharmony_ci              69:   33(fvec4) Load 68
179617a3babSopenharmony_ci              70:     47(ptr) AccessChain 41(gl_MeshVerticesEXT) 66 44
180617a3babSopenharmony_ci                              Store 70 69
181617a3babSopenharmony_ci              71:      8(int) Load 10(iid)
182617a3babSopenharmony_ci              72:      8(int) IAdd 71 62
183617a3babSopenharmony_ci              73:      8(int) Load 10(iid)
184617a3babSopenharmony_ci              74:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 73 50
185617a3babSopenharmony_ci              75:   32(float) Load 74
186617a3babSopenharmony_ci              76:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 72 50
187617a3babSopenharmony_ci                              Store 76 75
188617a3babSopenharmony_ci              77:      8(int) Load 10(iid)
189617a3babSopenharmony_ci              78:      8(int) IAdd 77 62
190617a3babSopenharmony_ci              79:      8(int) Load 10(iid)
191617a3babSopenharmony_ci              80:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 79 55 56
192617a3babSopenharmony_ci              81:   32(float) Load 80
193617a3babSopenharmony_ci              82:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 78 55 56
194617a3babSopenharmony_ci                              Store 82 81
195617a3babSopenharmony_ci              83:      8(int) Load 10(iid)
196617a3babSopenharmony_ci              84:      8(int) IAdd 83 62
197617a3babSopenharmony_ci              85:      8(int) Load 10(iid)
198617a3babSopenharmony_ci              86:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 85 56 55
199617a3babSopenharmony_ci              87:   32(float) Load 86
200617a3babSopenharmony_ci              88:     52(ptr) AccessChain 41(gl_MeshVerticesEXT) 84 56 55
201617a3babSopenharmony_ci                              Store 88 87
202617a3babSopenharmony_ci                              MemoryBarrier 62 63
203617a3babSopenharmony_ci                              ControlBarrier 64 64 63
204617a3babSopenharmony_ci              94:      8(int) Load 10(iid)
205617a3babSopenharmony_ci              97:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 94 44
206617a3babSopenharmony_ci                              Store 97 95
207617a3babSopenharmony_ci              98:      8(int) Load 10(iid)
208617a3babSopenharmony_ci             100:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 98 50
209617a3babSopenharmony_ci                              Store 100 99
210617a3babSopenharmony_ci             101:      8(int) Load 10(iid)
211617a3babSopenharmony_ci             103:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 101 55
212617a3babSopenharmony_ci                              Store 103 102
213617a3babSopenharmony_ci             104:      8(int) Load 10(iid)
214617a3babSopenharmony_ci             107:    106(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 104 56
215617a3babSopenharmony_ci                              Store 107 105
216617a3babSopenharmony_ci             108:      8(int) Load 10(iid)
217617a3babSopenharmony_ci             110:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 108 109
218617a3babSopenharmony_ci                              Store 110 44
219617a3babSopenharmony_ci                              MemoryBarrier 62 63
220617a3babSopenharmony_ci                              ControlBarrier 64 64 63
221617a3babSopenharmony_ci             111:      8(int) Load 10(iid)
222617a3babSopenharmony_ci             112:      8(int) IAdd 111 62
223617a3babSopenharmony_ci             113:      8(int) Load 10(iid)
224617a3babSopenharmony_ci             114:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 113 44
225617a3babSopenharmony_ci             115:     43(int) Load 114
226617a3babSopenharmony_ci             116:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 112 44
227617a3babSopenharmony_ci                              Store 116 115
228617a3babSopenharmony_ci             117:      8(int) Load 10(iid)
229617a3babSopenharmony_ci             118:      8(int) IAdd 117 62
230617a3babSopenharmony_ci             119:      8(int) Load 10(iid)
231617a3babSopenharmony_ci             120:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 119 50
232617a3babSopenharmony_ci             121:     43(int) Load 120
233617a3babSopenharmony_ci             122:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 118 50
234617a3babSopenharmony_ci                              Store 122 121
235617a3babSopenharmony_ci             123:      8(int) Load 10(iid)
236617a3babSopenharmony_ci             124:      8(int) IAdd 123 62
237617a3babSopenharmony_ci             125:      8(int) Load 10(iid)
238617a3babSopenharmony_ci             126:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 125 55
239617a3babSopenharmony_ci             127:     43(int) Load 126
240617a3babSopenharmony_ci             128:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 124 55
241617a3babSopenharmony_ci                              Store 128 127
242617a3babSopenharmony_ci             129:      8(int) Load 10(iid)
243617a3babSopenharmony_ci             130:      8(int) IAdd 129 62
244617a3babSopenharmony_ci             131:      8(int) Load 10(iid)
245617a3babSopenharmony_ci             132:    106(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 131 56
246617a3babSopenharmony_ci             133:    89(bool) Load 132
247617a3babSopenharmony_ci             134:    106(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 130 56
248617a3babSopenharmony_ci                              Store 134 133
249617a3babSopenharmony_ci             135:      8(int) Load 10(iid)
250617a3babSopenharmony_ci             136:      8(int) IAdd 135 62
251617a3babSopenharmony_ci             137:     96(ptr) AccessChain 93(gl_MeshPrimitivesEXT) 136 109
252617a3babSopenharmony_ci                              Store 137 44
253617a3babSopenharmony_ci                              MemoryBarrier 62 63
254617a3babSopenharmony_ci                              ControlBarrier 64 64 63
255617a3babSopenharmony_ci             144:    143(ptr) AccessChain 140(gl_PrimitiveTriangleIndicesEXT) 44
256617a3babSopenharmony_ci                              Store 144 142
257617a3babSopenharmony_ci             145:      8(int) Load 28(primitiveCount)
258617a3babSopenharmony_ci             146:      8(int) ISub 145 62
259617a3babSopenharmony_ci             148:    143(ptr) AccessChain 140(gl_PrimitiveTriangleIndicesEXT) 146
260617a3babSopenharmony_ci                              Store 148 147
261617a3babSopenharmony_ci             149:      8(int) Load 18(gid)
262617a3babSopenharmony_ci             150:      8(int) Load 18(gid)
263617a3babSopenharmony_ci             151:      8(int) ISub 150 62
264617a3babSopenharmony_ci             152:    143(ptr) AccessChain 140(gl_PrimitiveTriangleIndicesEXT) 151
265617a3babSopenharmony_ci             153:   11(ivec3) Load 152
266617a3babSopenharmony_ci             154:    143(ptr) AccessChain 140(gl_PrimitiveTriangleIndicesEXT) 149
267617a3babSopenharmony_ci                              Store 154 153
268617a3babSopenharmony_ci                              MemoryBarrier 62 63
269617a3babSopenharmony_ci                              ControlBarrier 64 64 63
270617a3babSopenharmony_ci                              Return
271617a3babSopenharmony_ci                              FunctionEnd
272617a3babSopenharmony_ci6(testAdditionalBuiltins():           2 Function None 3
273617a3babSopenharmony_ci               7:             Label
274617a3babSopenharmony_ci         156(id):    155(ptr) Variable Function
275617a3babSopenharmony_ci    160(viewIdx):    155(ptr) Variable Function
276617a3babSopenharmony_ci             159:     43(int) Load 158(gl_DrawIDARB)
277617a3babSopenharmony_ci                              Store 156(id) 159
278617a3babSopenharmony_ci             162:     43(int) Load 161(gl_ViewIndex)
279617a3babSopenharmony_ci                              Store 160(viewIdx) 162
280617a3babSopenharmony_ci                              Return
281617a3babSopenharmony_ci                              FunctionEnd
282