260 lines
14 KiB
Plaintext
260 lines
14 KiB
Plaintext
spv.meshShaderBuiltins.mesh
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80007
|
|
// Id's are bound by 147
|
|
|
|
Capability ClipDistance
|
|
Capability CullDistance
|
|
Capability MultiViewport
|
|
Capability DrawParameters
|
|
Capability ShaderViewportMaskNV
|
|
Capability MeshShadingNV
|
|
Extension "SPV_KHR_shader_draw_parameters"
|
|
Extension "SPV_NV_mesh_shader"
|
|
Extension "SPV_NV_viewport_array2"
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint MeshNV 4 "main" 11 17 34 89 129 140 144
|
|
ExecutionMode 4 LocalSize 32 1 1
|
|
ExecutionMode 4 OutputVertices 81
|
|
ExecutionMode 4 OutputPrimitivesNV 32
|
|
ExecutionMode 4 OutputTrianglesNV
|
|
Source GLSL 460
|
|
SourceExtension "GL_NV_mesh_shader"
|
|
Name 4 "main"
|
|
Name 8 "iid"
|
|
Name 11 "gl_LocalInvocationID"
|
|
Name 16 "gid"
|
|
Name 17 "gl_WorkGroupID"
|
|
Name 30 "gl_MeshPerVertexNV"
|
|
MemberName 30(gl_MeshPerVertexNV) 0 "gl_Position"
|
|
MemberName 30(gl_MeshPerVertexNV) 1 "gl_PointSize"
|
|
MemberName 30(gl_MeshPerVertexNV) 2 "gl_ClipDistance"
|
|
MemberName 30(gl_MeshPerVertexNV) 3 "gl_CullDistance"
|
|
MemberName 30(gl_MeshPerVertexNV) 4 "gl_PositionPerViewNV"
|
|
MemberName 30(gl_MeshPerVertexNV) 5 "gl_ClipDistancePerViewNV"
|
|
MemberName 30(gl_MeshPerVertexNV) 6 "gl_CullDistancePerViewNV"
|
|
Name 34 "gl_MeshVerticesNV"
|
|
Name 85 "gl_MeshPerPrimitiveNV"
|
|
MemberName 85(gl_MeshPerPrimitiveNV) 0 "gl_PrimitiveID"
|
|
MemberName 85(gl_MeshPerPrimitiveNV) 1 "gl_Layer"
|
|
MemberName 85(gl_MeshPerPrimitiveNV) 2 "gl_ViewportIndex"
|
|
MemberName 85(gl_MeshPerPrimitiveNV) 3 "gl_ViewportMask"
|
|
MemberName 85(gl_MeshPerPrimitiveNV) 4 "gl_LayerPerViewNV"
|
|
MemberName 85(gl_MeshPerPrimitiveNV) 5 "gl_ViewportMaskPerViewNV"
|
|
Name 89 "gl_MeshPrimitivesNV"
|
|
Name 129 "gl_PrimitiveIndicesNV"
|
|
Name 140 "gl_DrawID"
|
|
Name 144 "gl_PrimitiveCountNV"
|
|
Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId
|
|
Decorate 17(gl_WorkGroupID) BuiltIn WorkgroupId
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 0 BuiltIn Position
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 1 BuiltIn PointSize
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 2 BuiltIn ClipDistance
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 3 BuiltIn CullDistance
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 4 PerViewNV
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 4 BuiltIn PositionPerViewNV
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 5 PerViewNV
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 5 BuiltIn ClipDistancePerViewNV
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 6 PerViewNV
|
|
MemberDecorate 30(gl_MeshPerVertexNV) 6 BuiltIn CullDistancePerViewNV
|
|
Decorate 30(gl_MeshPerVertexNV) Block
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 0 PerPrimitiveNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 0 BuiltIn PrimitiveId
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 1 PerPrimitiveNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 1 BuiltIn Layer
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 2 PerPrimitiveNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 2 BuiltIn ViewportIndex
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 3 PerPrimitiveNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 3 BuiltIn ViewportMaskNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 4 PerPrimitiveNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 4 PerViewNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 4 BuiltIn LayerPerViewNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 5 PerPrimitiveNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 5 PerViewNV
|
|
MemberDecorate 85(gl_MeshPerPrimitiveNV) 5 BuiltIn ViewportMaskPerViewNV
|
|
Decorate 85(gl_MeshPerPrimitiveNV) Block
|
|
Decorate 129(gl_PrimitiveIndicesNV) BuiltIn PrimitiveIndicesNV
|
|
Decorate 140(gl_DrawID) BuiltIn DrawIndex
|
|
Decorate 144(gl_PrimitiveCountNV) BuiltIn PrimitiveCountNV
|
|
Decorate 146 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: TypeVector 20(float) 4
|
|
22: 6(int) Constant 4
|
|
23: TypeArray 20(float) 22
|
|
24: 6(int) Constant 3
|
|
25: TypeArray 20(float) 24
|
|
26: TypeArray 21(fvec4) 22
|
|
27: 6(int) Constant 8
|
|
28: TypeArray 20(float) 27
|
|
29: TypeArray 28 22
|
|
30(gl_MeshPerVertexNV): TypeStruct 21(fvec4) 20(float) 23 25 26 29 29
|
|
31: 6(int) Constant 81
|
|
32: TypeArray 30(gl_MeshPerVertexNV) 31
|
|
33: TypePointer Output 32
|
|
34(gl_MeshVerticesNV): 33(ptr) Variable Output
|
|
36: TypeInt 32 1
|
|
37: 36(int) Constant 0
|
|
38: 20(float) Constant 1065353216
|
|
39: 21(fvec4) ConstantComposite 38 38 38 38
|
|
40: TypePointer Output 21(fvec4)
|
|
43: 36(int) Constant 1
|
|
44: 20(float) Constant 1073741824
|
|
45: TypePointer Output 20(float)
|
|
48: 36(int) Constant 2
|
|
49: 36(int) Constant 3
|
|
50: 20(float) Constant 1077936128
|
|
53: 20(float) Constant 1082130432
|
|
55: 6(int) Constant 1
|
|
56: 6(int) Constant 264
|
|
57: 6(int) Constant 2
|
|
82: TypeArray 36(int) 55
|
|
83: TypeArray 36(int) 22
|
|
84: TypeArray 82 22
|
|
85(gl_MeshPerPrimitiveNV): TypeStruct 36(int) 36(int) 36(int) 82 83 84
|
|
86: 6(int) Constant 32
|
|
87: TypeArray 85(gl_MeshPerPrimitiveNV) 86
|
|
88: TypePointer Output 87
|
|
89(gl_MeshPrimitivesNV): 88(ptr) Variable Output
|
|
91: 36(int) Constant 6
|
|
92: TypePointer Output 36(int)
|
|
95: 36(int) Constant 7
|
|
98: 36(int) Constant 8
|
|
101: 36(int) Constant 9
|
|
127: TypeArray 6(int) 31
|
|
128: TypePointer Output 127
|
|
129(gl_PrimitiveIndicesNV): 128(ptr) Variable Output
|
|
130: 6(int) Constant 257
|
|
131: TypePointer Output 6(int)
|
|
139: TypePointer Input 36(int)
|
|
140(gl_DrawID): 139(ptr) Variable Input
|
|
143: 6(int) Constant 16909060
|
|
144(gl_PrimitiveCountNV): 131(ptr) Variable Output
|
|
145: 6(int) Constant 96
|
|
146: 9(ivec3) ConstantComposite 86 55 55
|
|
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)
|
|
41: 40(ptr) AccessChain 34(gl_MeshVerticesNV) 35 37
|
|
Store 41 39
|
|
42: 6(int) Load 8(iid)
|
|
46: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 42 43
|
|
Store 46 44
|
|
47: 6(int) Load 8(iid)
|
|
51: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 47 48 49
|
|
Store 51 50
|
|
52: 6(int) Load 8(iid)
|
|
54: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 52 49 48
|
|
Store 54 53
|
|
MemoryBarrier 55 56
|
|
ControlBarrier 57 57 56
|
|
58: 6(int) Load 8(iid)
|
|
59: 6(int) IAdd 58 55
|
|
60: 6(int) Load 8(iid)
|
|
61: 40(ptr) AccessChain 34(gl_MeshVerticesNV) 60 37
|
|
62: 21(fvec4) Load 61
|
|
63: 40(ptr) AccessChain 34(gl_MeshVerticesNV) 59 37
|
|
Store 63 62
|
|
64: 6(int) Load 8(iid)
|
|
65: 6(int) IAdd 64 55
|
|
66: 6(int) Load 8(iid)
|
|
67: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 66 43
|
|
68: 20(float) Load 67
|
|
69: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 65 43
|
|
Store 69 68
|
|
70: 6(int) Load 8(iid)
|
|
71: 6(int) IAdd 70 55
|
|
72: 6(int) Load 8(iid)
|
|
73: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 72 48 49
|
|
74: 20(float) Load 73
|
|
75: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 71 48 49
|
|
Store 75 74
|
|
76: 6(int) Load 8(iid)
|
|
77: 6(int) IAdd 76 55
|
|
78: 6(int) Load 8(iid)
|
|
79: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 78 49 48
|
|
80: 20(float) Load 79
|
|
81: 45(ptr) AccessChain 34(gl_MeshVerticesNV) 77 49 48
|
|
Store 81 80
|
|
MemoryBarrier 55 56
|
|
ControlBarrier 57 57 56
|
|
90: 6(int) Load 8(iid)
|
|
93: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 90 37
|
|
Store 93 91
|
|
94: 6(int) Load 8(iid)
|
|
96: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 94 43
|
|
Store 96 95
|
|
97: 6(int) Load 8(iid)
|
|
99: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 97 48
|
|
Store 99 98
|
|
100: 6(int) Load 8(iid)
|
|
102: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 100 49 37
|
|
Store 102 101
|
|
MemoryBarrier 55 56
|
|
ControlBarrier 57 57 56
|
|
103: 6(int) Load 8(iid)
|
|
104: 6(int) IAdd 103 55
|
|
105: 6(int) Load 8(iid)
|
|
106: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 105 37
|
|
107: 36(int) Load 106
|
|
108: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 104 37
|
|
Store 108 107
|
|
109: 6(int) Load 8(iid)
|
|
110: 6(int) IAdd 109 55
|
|
111: 6(int) Load 8(iid)
|
|
112: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 111 43
|
|
113: 36(int) Load 112
|
|
114: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 110 43
|
|
Store 114 113
|
|
115: 6(int) Load 8(iid)
|
|
116: 6(int) IAdd 115 55
|
|
117: 6(int) Load 8(iid)
|
|
118: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 117 48
|
|
119: 36(int) Load 118
|
|
120: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 116 48
|
|
Store 120 119
|
|
121: 6(int) Load 8(iid)
|
|
122: 6(int) IAdd 121 55
|
|
123: 6(int) Load 8(iid)
|
|
124: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 123 49 37
|
|
125: 36(int) Load 124
|
|
126: 92(ptr) AccessChain 89(gl_MeshPrimitivesNV) 122 49 37
|
|
Store 126 125
|
|
MemoryBarrier 55 56
|
|
ControlBarrier 57 57 56
|
|
132: 131(ptr) AccessChain 129(gl_PrimitiveIndicesNV) 37
|
|
Store 132 130
|
|
133: 6(int) Load 16(gid)
|
|
134: 6(int) Load 16(gid)
|
|
135: 6(int) ISub 134 55
|
|
136: 131(ptr) AccessChain 129(gl_PrimitiveIndicesNV) 135
|
|
137: 6(int) Load 136
|
|
138: 131(ptr) AccessChain 129(gl_PrimitiveIndicesNV) 133
|
|
Store 138 137
|
|
141: 36(int) Load 140(gl_DrawID)
|
|
142: 6(int) Bitcast 141
|
|
143: 142 WritePackedPrimitiveIndices4x8NV
|
|
Store 144(gl_PrimitiveCountNV) 145
|
|
MemoryBarrier 55 56
|
|
ControlBarrier 57 57 56
|
|
Return
|
|
FunctionEnd
|