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