• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.meshShaderRedeclBuiltins.mesh
2// Module Version 10000
3// Generated by (magic number): 80008
4// Id's are bound by 129
5
6                              Capability ClipDistance
7                              Capability CullDistance
8                              Capability MultiViewport
9                              Capability ShaderViewportMaskNV
10                              Capability MeshShadingNV
11                              Extension  "SPV_NV_mesh_shader"
12                              Extension  "SPV_NV_viewport_array2"
13               1:             ExtInstImport  "GLSL.std.450"
14                              MemoryModel Logical GLSL450
15                              EntryPoint MeshNV 4  "main" 11 17 28 81 122 127
16                              ExecutionMode 4 LocalSize 32 1 1
17                              ExecutionMode 4 OutputVertices 81
18                              ExecutionMode 4 OutputPrimitivesNV 32
19                              ExecutionMode 4 OutputTrianglesNV
20                              Source GLSL 460
21                              SourceExtension  "GL_NV_mesh_shader"
22                              Name 4  "main"
23                              Name 8  "iid"
24                              Name 11  "gl_LocalInvocationID"
25                              Name 16  "gid"
26                              Name 17  "gl_WorkGroupID"
27                              Name 24  "gl_MeshPerVertexNV"
28                              MemberName 24(gl_MeshPerVertexNV) 0  "gl_Position"
29                              MemberName 24(gl_MeshPerVertexNV) 1  "gl_PointSize"
30                              MemberName 24(gl_MeshPerVertexNV) 2  "gl_ClipDistance"
31                              MemberName 24(gl_MeshPerVertexNV) 3  "gl_CullDistance"
32                              Name 28  "gl_MeshVerticesNV"
33                              Name 77  "gl_MeshPerPrimitiveNV"
34                              MemberName 77(gl_MeshPerPrimitiveNV) 0  "gl_PrimitiveID"
35                              MemberName 77(gl_MeshPerPrimitiveNV) 1  "gl_Layer"
36                              MemberName 77(gl_MeshPerPrimitiveNV) 2  "gl_ViewportIndex"
37                              MemberName 77(gl_MeshPerPrimitiveNV) 3  "gl_ViewportMask"
38                              Name 81  "gl_MeshPrimitivesNV"
39                              Name 122  "gl_PrimitiveIndicesNV"
40                              Name 127  "gl_PrimitiveCountNV"
41                              Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId
42                              Decorate 17(gl_WorkGroupID) BuiltIn WorkgroupId
43                              MemberDecorate 24(gl_MeshPerVertexNV) 0 BuiltIn Position
44                              MemberDecorate 24(gl_MeshPerVertexNV) 1 BuiltIn PointSize
45                              MemberDecorate 24(gl_MeshPerVertexNV) 2 BuiltIn ClipDistance
46                              MemberDecorate 24(gl_MeshPerVertexNV) 3 BuiltIn CullDistance
47                              Decorate 24(gl_MeshPerVertexNV) Block
48                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 0 PerPrimitiveNV
49                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 0 BuiltIn PrimitiveId
50                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 1 PerPrimitiveNV
51                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 1 BuiltIn Layer
52                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 2 PerPrimitiveNV
53                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 2 BuiltIn ViewportIndex
54                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 3 PerPrimitiveNV
55                              MemberDecorate 77(gl_MeshPerPrimitiveNV) 3 BuiltIn ViewportMaskNV
56                              Decorate 77(gl_MeshPerPrimitiveNV) Block
57                              Decorate 122(gl_PrimitiveIndicesNV) BuiltIn PrimitiveIndicesNV
58                              Decorate 127(gl_PrimitiveCountNV) BuiltIn PrimitiveCountNV
59                              Decorate 128 BuiltIn WorkgroupSize
60               2:             TypeVoid
61               3:             TypeFunction 2
62               6:             TypeInt 32 0
63               7:             TypePointer Function 6(int)
64               9:             TypeVector 6(int) 3
65              10:             TypePointer Input 9(ivec3)
6611(gl_LocalInvocationID):     10(ptr) Variable Input
67              12:      6(int) Constant 0
68              13:             TypePointer Input 6(int)
6917(gl_WorkGroupID):     10(ptr) Variable Input
70              20:             TypeFloat 32
71              21:             TypeVector 20(float) 4
72              22:      6(int) Constant 4
73              23:             TypeArray 20(float) 22
7424(gl_MeshPerVertexNV):             TypeStruct 21(fvec4) 20(float) 23 23
75              25:      6(int) Constant 81
76              26:             TypeArray 24(gl_MeshPerVertexNV) 25
77              27:             TypePointer Output 26
7828(gl_MeshVerticesNV):     27(ptr) Variable Output
79              30:             TypeInt 32 1
80              31:     30(int) Constant 0
81              32:   20(float) Constant 1065353216
82              33:   21(fvec4) ConstantComposite 32 32 32 32
83              34:             TypePointer Output 21(fvec4)
84              37:     30(int) Constant 1
85              38:   20(float) Constant 1073741824
86              39:             TypePointer Output 20(float)
87              42:     30(int) Constant 2
88              43:     30(int) Constant 3
89              44:   20(float) Constant 1077936128
90              47:   20(float) Constant 1082130432
91              49:      6(int) Constant 1
92              50:      6(int) Constant 264
93              51:      6(int) Constant 2
94              76:             TypeArray 30(int) 49
9577(gl_MeshPerPrimitiveNV):             TypeStruct 30(int) 30(int) 30(int) 76
96              78:      6(int) Constant 32
97              79:             TypeArray 77(gl_MeshPerPrimitiveNV) 78
98              80:             TypePointer Output 79
9981(gl_MeshPrimitivesNV):     80(ptr) Variable Output
100              83:     30(int) Constant 6
101              84:             TypePointer Output 30(int)
102              87:     30(int) Constant 7
103              90:     30(int) Constant 8
104              93:     30(int) Constant 9
105             119:      6(int) Constant 96
106             120:             TypeArray 6(int) 119
107             121:             TypePointer Output 120
108122(gl_PrimitiveIndicesNV):    121(ptr) Variable Output
109             123:             TypePointer Output 6(int)
110             125:     30(int) Constant 95
111127(gl_PrimitiveCountNV):    123(ptr) Variable Output
112             128:    9(ivec3) ConstantComposite 78 49 49
113         4(main):           2 Function None 3
114               5:             Label
115          8(iid):      7(ptr) Variable Function
116         16(gid):      7(ptr) Variable Function
117              14:     13(ptr) AccessChain 11(gl_LocalInvocationID) 12
118              15:      6(int) Load 14
119                              Store 8(iid) 15
120              18:     13(ptr) AccessChain 17(gl_WorkGroupID) 12
121              19:      6(int) Load 18
122                              Store 16(gid) 19
123              29:      6(int) Load 8(iid)
124              35:     34(ptr) AccessChain 28(gl_MeshVerticesNV) 29 31
125                              Store 35 33
126              36:      6(int) Load 8(iid)
127              40:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 36 37
128                              Store 40 38
129              41:      6(int) Load 8(iid)
130              45:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 41 42 43
131                              Store 45 44
132              46:      6(int) Load 8(iid)
133              48:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 46 43 42
134                              Store 48 47
135                              MemoryBarrier 49 50
136                              ControlBarrier 51 51 50
137              52:      6(int) Load 8(iid)
138              53:      6(int) IAdd 52 49
139              54:      6(int) Load 8(iid)
140              55:     34(ptr) AccessChain 28(gl_MeshVerticesNV) 54 31
141              56:   21(fvec4) Load 55
142              57:     34(ptr) AccessChain 28(gl_MeshVerticesNV) 53 31
143                              Store 57 56
144              58:      6(int) Load 8(iid)
145              59:      6(int) IAdd 58 49
146              60:      6(int) Load 8(iid)
147              61:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 60 37
148              62:   20(float) Load 61
149              63:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 59 37
150                              Store 63 62
151              64:      6(int) Load 8(iid)
152              65:      6(int) IAdd 64 49
153              66:      6(int) Load 8(iid)
154              67:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 66 42 43
155              68:   20(float) Load 67
156              69:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 65 42 43
157                              Store 69 68
158              70:      6(int) Load 8(iid)
159              71:      6(int) IAdd 70 49
160              72:      6(int) Load 8(iid)
161              73:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 72 43 42
162              74:   20(float) Load 73
163              75:     39(ptr) AccessChain 28(gl_MeshVerticesNV) 71 43 42
164                              Store 75 74
165                              MemoryBarrier 49 50
166                              ControlBarrier 51 51 50
167              82:      6(int) Load 8(iid)
168              85:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 82 31
169                              Store 85 83
170              86:      6(int) Load 8(iid)
171              88:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 86 37
172                              Store 88 87
173              89:      6(int) Load 8(iid)
174              91:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 89 42
175                              Store 91 90
176              92:      6(int) Load 8(iid)
177              94:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 92 43 31
178                              Store 94 93
179                              MemoryBarrier 49 50
180                              ControlBarrier 51 51 50
181              95:      6(int) Load 8(iid)
182              96:      6(int) IAdd 95 49
183              97:      6(int) Load 8(iid)
184              98:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 97 31
185              99:     30(int) Load 98
186             100:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 96 31
187                              Store 100 99
188             101:      6(int) Load 8(iid)
189             102:      6(int) IAdd 101 49
190             103:      6(int) Load 8(iid)
191             104:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 103 37
192             105:     30(int) Load 104
193             106:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 102 37
194                              Store 106 105
195             107:      6(int) Load 8(iid)
196             108:      6(int) IAdd 107 49
197             109:      6(int) Load 8(iid)
198             110:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 109 42
199             111:     30(int) Load 110
200             112:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 108 42
201                              Store 112 111
202             113:      6(int) Load 8(iid)
203             114:      6(int) IAdd 113 49
204             115:      6(int) Load 8(iid)
205             116:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 115 43 31
206             117:     30(int) Load 116
207             118:     84(ptr) AccessChain 81(gl_MeshPrimitivesNV) 114 43 31
208                              Store 118 117
209                              MemoryBarrier 49 50
210                              ControlBarrier 51 51 50
211             124:    123(ptr) AccessChain 122(gl_PrimitiveIndicesNV) 31
212                              Store 124 49
213             126:    123(ptr) AccessChain 122(gl_PrimitiveIndicesNV) 125
214                              Store 126 51
215                              Store 127(gl_PrimitiveCountNV) 119
216                              Return
217                              FunctionEnd
218