1spv.meshShaderPerViewUserDefined.mesh
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 108
5
6                              Capability MeshShadingNV
7                              Extension  "SPV_NV_mesh_shader"
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint MeshNV 4  "main" 11 20 21 35 67 92 95 96 97 102 105 106 107
11                              ExecutionMode 4 LocalSize 32 1 1
12                              ExecutionMode 4 OutputVertices 81
13                              ExecutionMode 4 OutputPrimitivesNV 32
14                              ExecutionMode 4 OutputTrianglesNV
15                              Source GLSL 450
16                              SourceExtension  "GL_NV_mesh_shader"
17                              Name 4  "main"
18                              Name 8  "iid"
19                              Name 11  "gl_LocalInvocationID"
20                              Name 16  "viewID"
21                              Name 20  "gl_MeshViewIndicesNV"
22                              Name 21  "gl_MeshViewCountNV"
23                              Name 31  "block"
24                              MemberName 31(block) 0  "color1"
25                              MemberName 31(block) 1  "color2"
26                              MemberName 31(block) 2  "color3"
27                              MemberName 31(block) 3  "color4"
28                              Name 35  "b"
29                              Name 64  "perviewBlock"
30                              MemberName 64(perviewBlock) 0  "color5"
31                              MemberName 64(perviewBlock) 1  "color6"
32                              MemberName 64(perviewBlock) 2  "color7"
33                              MemberName 64(perviewBlock) 3  "color8"
34                              Name 67  "b2"
35                              Name 92  "nonBlk1"
36                              Name 95  "nonBlk2"
37                              Name 96  "nonBlk3"
38                              Name 97  "nonBlk4"
39                              Name 102  "nonBlkArr1"
40                              Name 105  "nonBlkArr2"
41                              Name 106  "nonBlkArr3"
42                              Name 107  "nonBlkArr4"
43                              Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId
44                              Decorate 20(gl_MeshViewIndicesNV) BuiltIn MeshViewIndicesNV
45                              Decorate 21(gl_MeshViewCountNV) BuiltIn MeshViewCountNV
46                              MemberDecorate 31(block) 0 PerPrimitiveNV
47                              MemberDecorate 31(block) 0 PerViewNV
48                              MemberDecorate 31(block) 1 PerPrimitiveNV
49                              MemberDecorate 31(block) 2 PerViewNV
50                              Decorate 31(block) Block
51                              Decorate 35(b) Location 0
52                              MemberDecorate 64(perviewBlock) 0 PerPrimitiveNV
53                              MemberDecorate 64(perviewBlock) 0 PerViewNV
54                              MemberDecorate 64(perviewBlock) 1 PerPrimitiveNV
55                              MemberDecorate 64(perviewBlock) 1 PerViewNV
56                              MemberDecorate 64(perviewBlock) 2 PerViewNV
57                              MemberDecorate 64(perviewBlock) 3 PerViewNV
58                              Decorate 64(perviewBlock) Block
59                              Decorate 67(b2) Location 10
60                              Decorate 89 BuiltIn WorkgroupSize
61                              Decorate 92(nonBlk1) PerViewNV
62                              Decorate 92(nonBlk1) Location 18
63                              Decorate 95(nonBlk2) PerPrimitiveNV
64                              Decorate 95(nonBlk2) PerViewNV
65                              Decorate 95(nonBlk2) Location 19
66                              Decorate 96(nonBlk3) PerViewNV
67                              Decorate 96(nonBlk3) Location 20
68                              Decorate 97(nonBlk4) PerPrimitiveNV
69                              Decorate 97(nonBlk4) PerViewNV
70                              Decorate 97(nonBlk4) Location 21
71                              Decorate 102(nonBlkArr1) PerViewNV
72                              Decorate 102(nonBlkArr1) Location 22
73                              Decorate 105(nonBlkArr2) PerPrimitiveNV
74                              Decorate 105(nonBlkArr2) PerViewNV
75                              Decorate 105(nonBlkArr2) Location 24
76                              Decorate 106(nonBlkArr3) PerViewNV
77                              Decorate 106(nonBlkArr3) Location 26
78                              Decorate 107(nonBlkArr4) PerPrimitiveNV
79                              Decorate 107(nonBlkArr4) PerViewNV
80                              Decorate 107(nonBlkArr4) Location 28
81               2:             TypeVoid
82               3:             TypeFunction 2
83               6:             TypeInt 32 0
84               7:             TypePointer Function 6(int)
85               9:             TypeVector 6(int) 3
86              10:             TypePointer Input 9(ivec3)
8711(gl_LocalInvocationID):     10(ptr) Variable Input
88              12:      6(int) Constant 0
89              13:             TypePointer Input 6(int)
90              17:      6(int) Constant 4
91              18:             TypeArray 6(int) 17
92              19:             TypePointer Input 18
9320(gl_MeshViewIndicesNV):     19(ptr) Variable Input
9421(gl_MeshViewCountNV):     13(ptr) Variable Input
95              26:             TypeFloat 32
96              27:             TypeVector 26(float) 4
97              28:      6(int) Constant 3
98              29:             TypeArray 27(fvec4) 28
99              30:             TypeArray 29 17
100       31(block):             TypeStruct 30 29 30 27(fvec4)
101              32:      6(int) Constant 81
102              33:             TypeArray 31(block) 32
103              34:             TypePointer Output 33
104           35(b):     34(ptr) Variable Output
105              37:             TypeInt 32 1
106              38:     37(int) Constant 0
107              40:     37(int) Constant 2
108              41:   26(float) Constant 1065353216
109              42:   27(fvec4) ConstantComposite 41 41 41 41
110              43:             TypePointer Output 27(fvec4)
111              46:     37(int) Constant 1
112              47:   26(float) Constant 1073741824
113              48:   27(fvec4) ConstantComposite 47 47 47 47
114              52:   26(float) Constant 1077936128
115              53:   27(fvec4) ConstantComposite 52 52 52 52
116              56:     37(int) Constant 3
117              57:   26(float) Constant 1082130432
118              58:   27(fvec4) ConstantComposite 57 57 57 57
119              60:      6(int) Constant 1
120              61:      6(int) Constant 264
121              62:      6(int) Constant 2
122              63:             TypeArray 27(fvec4) 17
12364(perviewBlock):             TypeStruct 63 30 30 63
124              65:             TypeArray 64(perviewBlock) 32
125              66:             TypePointer Output 65
126          67(b2):     66(ptr) Variable Output
127              70:   26(float) Constant 1084227584
128              71:   27(fvec4) ConstantComposite 70 70 70 70
129              75:   26(float) Constant 1086324736
130              76:   27(fvec4) ConstantComposite 75 75 75 75
131              80:   26(float) Constant 1088421888
132              81:   27(fvec4) ConstantComposite 80 80 80 80
133              85:   26(float) Constant 1090519040
134              86:   27(fvec4) ConstantComposite 85 85 85 85
135              88:      6(int) Constant 32
136              89:    9(ivec3) ConstantComposite 88 60 60
137              90:             TypeArray 63 32
138              91:             TypePointer Output 90
139     92(nonBlk1):     91(ptr) Variable Output
140              93:             TypeArray 63 88
141              94:             TypePointer Output 93
142     95(nonBlk2):     94(ptr) Variable Output
143     96(nonBlk3):     91(ptr) Variable Output
144     97(nonBlk4):     94(ptr) Variable Output
145              98:             TypeArray 27(fvec4) 62
146              99:             TypeArray 98 17
147             100:             TypeArray 99 32
148             101:             TypePointer Output 100
149 102(nonBlkArr1):    101(ptr) Variable Output
150             103:             TypeArray 99 88
151             104:             TypePointer Output 103
152 105(nonBlkArr2):    104(ptr) Variable Output
153 106(nonBlkArr3):    101(ptr) Variable Output
154 107(nonBlkArr4):    104(ptr) Variable Output
155         4(main):           2 Function None 3
156               5:             Label
157          8(iid):      7(ptr) Variable Function
158      16(viewID):      7(ptr) Variable Function
159              14:     13(ptr) AccessChain 11(gl_LocalInvocationID) 12
160              15:      6(int) Load 14
161                              Store 8(iid) 15
162              22:      6(int) Load 21(gl_MeshViewCountNV)
163              23:      6(int) UMod 22 17
164              24:     13(ptr) AccessChain 20(gl_MeshViewIndicesNV) 23
165              25:      6(int) Load 24
166                              Store 16(viewID) 25
167              36:      6(int) Load 8(iid)
168              39:      6(int) Load 16(viewID)
169              44:     43(ptr) AccessChain 35(b) 36 38 39 40
170                              Store 44 42
171              45:      6(int) Load 8(iid)
172              49:     43(ptr) AccessChain 35(b) 45 46 46
173                              Store 49 48
174              50:      6(int) Load 8(iid)
175              51:      6(int) Load 16(viewID)
176              54:     43(ptr) AccessChain 35(b) 50 40 51 40
177                              Store 54 53
178              55:      6(int) Load 8(iid)
179              59:     43(ptr) AccessChain 35(b) 55 56
180                              Store 59 58
181                              MemoryBarrier 60 61
182                              ControlBarrier 62 62 61
183              68:      6(int) Load 8(iid)
184              69:      6(int) Load 16(viewID)
185              72:     43(ptr) AccessChain 67(b2) 68 38 69
186                              Store 72 71
187              73:      6(int) Load 8(iid)
188              74:      6(int) Load 16(viewID)
189              77:     43(ptr) AccessChain 67(b2) 73 46 74 46
190                              Store 77 76
191              78:      6(int) Load 8(iid)
192              79:      6(int) Load 16(viewID)
193              82:     43(ptr) AccessChain 67(b2) 78 40 79 40
194                              Store 82 81
195              83:      6(int) Load 8(iid)
196              84:      6(int) Load 16(viewID)
197              87:     43(ptr) AccessChain 67(b2) 83 56 84
198                              Store 87 86
199                              MemoryBarrier 60 61
200                              ControlBarrier 62 62 61
201                              Return
202                              FunctionEnd
203