blob: ff4d97a237e6c996f032396bff07905763fd3d55 [file] [edit]
spv.ext.meshShaderUserDefined.mesh
// Module Version 10400
// Generated by (magic number): 8000b
// Id's are bound by 125
Capability MeshShadingEXT
Extension "SPV_EXT_mesh_shader"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint MeshEXT 4 "main" 11 17 34 100
ExecutionMode 4 LocalSize 32 1 1
ExecutionMode 4 OutputVertices 81
ExecutionMode 4 OutputPrimitivesNV 32
ExecutionMode 4 OutputTrianglesNV
Source GLSL 450
SourceExtension "GL_EXT_mesh_shader"
Name 4 "main"
Name 8 "iid"
Name 11 "gl_LocalInvocationID"
Name 16 "gid"
Name 17 "gl_WorkGroupID"
Name 30 "myblock"
MemberName 30(myblock) 0 "f"
MemberName 30(myblock) 1 "fArr"
MemberName 30(myblock) 2 "pos"
MemberName 30(myblock) 3 "posArr"
MemberName 30(myblock) 4 "m"
MemberName 30(myblock) 5 "mArr"
Name 34 "blk"
Name 96 "myblock2"
MemberName 96(myblock2) 0 "f"
MemberName 96(myblock2) 1 "pos"
MemberName 96(myblock2) 2 "m"
Name 100 "blk2"
Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId
Decorate 17(gl_WorkGroupID) BuiltIn WorkgroupId
Decorate 30(myblock) Block
MemberDecorate 30(myblock) 0 PerPrimitiveNV
MemberDecorate 30(myblock) 1 PerPrimitiveNV
MemberDecorate 30(myblock) 2 PerPrimitiveNV
MemberDecorate 30(myblock) 3 PerPrimitiveNV
MemberDecorate 30(myblock) 4 PerPrimitiveNV
MemberDecorate 30(myblock) 5 PerPrimitiveNV
Decorate 34(blk) Location 0
Decorate 96(myblock2) Block
Decorate 100(blk2) Location 20
Decorate 124 BuiltIn WorkgroupSize
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 0
7: TypePointer Function 6(int)
9: TypeVector 6(int) 3
10: TypePointer Input 9(ivec3)
11(gl_LocalInvocationID): 10(ptr) Variable Input
12: 6(int) Constant 0
13: TypePointer Input 6(int)
17(gl_WorkGroupID): 10(ptr) Variable Input
20: TypeFloat 32
21: 6(int) Constant 4
22: TypeArray 20(float) 21
23: TypeVector 20(float) 3
24: TypeVector 20(float) 4
25: TypeArray 24(fvec4) 21
26: TypeMatrix 24(fvec4) 4
27: TypeMatrix 23(fvec3) 3
28: 6(int) Constant 2
29: TypeArray 27 28
30(myblock): TypeStruct 20(float) 22 23(fvec3) 25 26 29
31: 6(int) Constant 32
32: TypeArray 30(myblock) 31
33: TypePointer Output 32
34(blk): 33(ptr) Variable Output
36: TypeInt 32 1
37: 36(int) Constant 0
38: 20(float) Constant 1093664768
39: TypePointer Output 20(float)
42: 6(int) Constant 1
44: 36(int) Constant 1
49: 36(int) Constant 2
50: 20(float) Constant 1096810496
51: 20(float) Constant 1097859072
52: 20(float) Constant 1095761920
53: 23(fvec3) ConstantComposite 50 51 52
62: 36(int) Constant 3
67: 6(int) Constant 3
72: 36(int) Constant 4
73: 20(float) Constant 1098907648
74: 24(fvec4) ConstantComposite 52 50 51 73
84: 36(int) Constant 5
89: 20(float) Constant 1099431936
90: 20(float) Constant 1099956224
91: 20(float) Constant 1100480512
92: 23(fvec3) ConstantComposite 89 90 91
93: TypePointer Output 23(fvec3)
95: 6(int) Constant 264
96(myblock2): TypeStruct 20(float) 24(fvec4) 26
97: 6(int) Constant 81
98: TypeArray 96(myblock2) 97
99: TypePointer Output 98
100(blk2): 99(ptr) Variable Output
102: 20(float) Constant 1101004800
105: 20(float) Constant 1101529088
106: 20(float) Constant 1102053376
107: 20(float) Constant 1102577664
108: 20(float) Constant 1103101952
109: 24(fvec4) ConstantComposite 105 106 107 108
110: TypePointer Output 24(fvec4)
119: 20(float) Constant 1105723392
124: 9(ivec3) ConstantComposite 31 42 42
4(main): 2 Function None 3
5: Label
8(iid): 7(ptr) Variable Function
16(gid): 7(ptr) Variable Function
14: 13(ptr) AccessChain 11(gl_LocalInvocationID) 12
15: 6(int) Load 14
Store 8(iid) 15
18: 13(ptr) AccessChain 17(gl_WorkGroupID) 12
19: 6(int) Load 18
Store 16(gid) 19
35: 6(int) Load 8(iid)
40: 39(ptr) AccessChain 34(blk) 35 37
Store 40 38
41: 6(int) Load 8(iid)
43: 6(int) IAdd 41 42
45: 6(int) Load 16(gid)
46: 39(ptr) AccessChain 34(blk) 43 44 45
Store 46 38
47: 6(int) Load 8(iid)
48: 6(int) UDiv 47 28
54: 39(ptr) AccessChain 34(blk) 48 49 42
55: 20(float) CompositeExtract 53 0
Store 54 55
56: 39(ptr) AccessChain 34(blk) 48 49 28
57: 20(float) CompositeExtract 53 1
Store 56 57
58: 39(ptr) AccessChain 34(blk) 48 49 12
59: 20(float) CompositeExtract 53 2
Store 58 59
60: 6(int) Load 8(iid)
61: 6(int) IMul 60 28
63: 39(ptr) AccessChain 34(blk) 61 62 44 42
64: 20(float) CompositeExtract 53 0
Store 63 64
65: 39(ptr) AccessChain 34(blk) 61 62 44 28
66: 20(float) CompositeExtract 53 1
Store 65 66
68: 39(ptr) AccessChain 34(blk) 61 62 44 67
69: 20(float) CompositeExtract 53 2
Store 68 69
70: 6(int) Load 8(iid)
71: 6(int) UDiv 70 21
75: 39(ptr) AccessChain 34(blk) 71 72 49 67
76: 20(float) CompositeExtract 74 0
Store 75 76
77: 39(ptr) AccessChain 34(blk) 71 72 49 28
78: 20(float) CompositeExtract 74 1
Store 77 78
79: 39(ptr) AccessChain 34(blk) 71 72 49 42
80: 20(float) CompositeExtract 74 2
Store 79 80
81: 39(ptr) AccessChain 34(blk) 71 72 49 12
82: 20(float) CompositeExtract 74 3
Store 81 82
83: 6(int) Load 8(iid)
85: 39(ptr) AccessChain 34(blk) 83 84 37 44 42
Store 85 73
86: 6(int) Load 8(iid)
87: 6(int) IMul 86 21
88: 6(int) Load 16(gid)
94: 93(ptr) AccessChain 34(blk) 87 84 44 88
Store 94 92
MemoryBarrier 42 95
ControlBarrier 28 28 95
101: 6(int) Load 8(iid)
103: 39(ptr) AccessChain 100(blk2) 101 37
Store 103 102
104: 6(int) Load 8(iid)
111: 110(ptr) AccessChain 100(blk2) 104 44
Store 111 109
112: 6(int) Load 8(iid)
113: 6(int) IAdd 112 42
114: 6(int) Load 16(gid)
115: 110(ptr) AccessChain 100(blk2) 113 49 114
Store 115 109
116: 6(int) Load 8(iid)
117: 6(int) IAdd 116 42
118: 6(int) Load 16(gid)
120: 39(ptr) AccessChain 100(blk2) 117 49 118 28
Store 120 119
121: 6(int) Load 8(iid)
122: 6(int) IAdd 121 28
123: 110(ptr) AccessChain 100(blk2) 122 49 62
Store 123 109
MemoryBarrier 42 95
ControlBarrier 28 28 95
Return
FunctionEnd