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