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