yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
dffbc797
main
1spv.ext.meshShaderBuiltins.mesh 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 107 5 6 Capability ClipDistance 7 Capability CullDistance 8 Capability DrawParameters 9 Capability MultiView 10 Capability MeshShadingEXT 11 Extension "SPV_EXT_mesh_shader" 12 1: ExtInstImport "GLSL.std.450" 13 MemoryModel Logical GLSL450 14 EntryPoint MeshEXT 4 "main" 13 19 24 41 69 86 101 104 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_ARB_shader_draw_parameters" 21 SourceExtension "GL_EXT_mesh_shader" 22 SourceExtension "GL_EXT_multiview" 23 Name 4 "main" 24 Name 6 "testAdditionalBuiltins(" 25 Name 10 "iid" 26 Name 13 "gl_LocalInvocationID" 27 Name 18 "gid" 28 Name 19 "gl_WorkGroupID" 29 Name 23 "numWorkGrous" 30 Name 24 "gl_NumWorkGroups" 31 Name 26 "vertexCount" 32 Name 28 "primitiveCount" 33 Name 38 "gl_MeshPerVertexEXT" 34 MemberName 38(gl_MeshPerVertexEXT) 0 "gl_Position" 35 MemberName 38(gl_MeshPerVertexEXT) 1 "gl_PointSize" 36 MemberName 38(gl_MeshPerVertexEXT) 2 "gl_ClipDistance" 37 MemberName 38(gl_MeshPerVertexEXT) 3 "gl_CullDistance" 38 Name 41 "gl_MeshVerticesEXT" 39 Name 66 "gl_MeshPerPrimitiveEXT" 40 MemberName 66(gl_MeshPerPrimitiveEXT) 0 "gl_PrimitiveID" 41 MemberName 66(gl_MeshPerPrimitiveEXT) 1 "gl_Layer" 42 MemberName 66(gl_MeshPerPrimitiveEXT) 2 "gl_ViewportIndex" 43 MemberName 66(gl_MeshPerPrimitiveEXT) 3 "gl_CullPrimitiveEXT" 44 Name 69 "gl_MeshPrimitivesEXT" 45 Name 86 "gl_PrimitiveTriangleIndicesEXT" 46 Name 99 "id" 47 Name 101 "gl_DrawIDARB" 48 Name 103 "viewIdx" 49 Name 104 "gl_ViewIndex" 50 Decorate 13(gl_LocalInvocationID) BuiltIn LocalInvocationId 51 Decorate 19(gl_WorkGroupID) BuiltIn WorkgroupId 52 Decorate 24(gl_NumWorkGroups) BuiltIn NumWorkgroups 53 Decorate 38(gl_MeshPerVertexEXT) Block 54 MemberDecorate 38(gl_MeshPerVertexEXT) 0 BuiltIn Position 55 MemberDecorate 38(gl_MeshPerVertexEXT) 1 BuiltIn PointSize 56 MemberDecorate 38(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance 57 MemberDecorate 38(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance 58 Decorate 66(gl_MeshPerPrimitiveEXT) Block 59 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 0 BuiltIn PrimitiveId 60 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 0 PerPrimitiveNV 61 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 1 BuiltIn Layer 62 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 1 PerPrimitiveNV 63 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 2 BuiltIn ViewportIndex 64 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 2 PerPrimitiveNV 65 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 3 BuiltIn CullPrimitiveEXT 66 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 3 PerPrimitiveNV 67 Decorate 86(gl_PrimitiveTriangleIndicesEXT) BuiltIn PrimitiveTriangleIndicesEXT 68 Decorate 101(gl_DrawIDARB) BuiltIn DrawIndex 69 Decorate 104(gl_ViewIndex) BuiltIn ViewIndex 70 Decorate 106 BuiltIn WorkgroupSize 71 2: TypeVoid 72 3: TypeFunction 2 73 8: TypeInt 32 0 74 9: TypePointer Function 8(int) 75 11: TypeVector 8(int) 3 76 12: TypePointer Input 11(ivec3) 7713(gl_LocalInvocationID): 12(ptr) Variable Input 78 14: 8(int) Constant 0 79 15: TypePointer Input 8(int) 8019(gl_WorkGroupID): 12(ptr) Variable Input 81 22: TypePointer Function 11(ivec3) 8224(gl_NumWorkGroups): 12(ptr) Variable Input 83 27: 8(int) Constant 81 84 29: 8(int) Constant 32 85 32: TypeFloat 32 86 33: TypeVector 32(float) 4 87 34: 8(int) Constant 4 88 35: TypeArray 32(float) 34 89 36: 8(int) Constant 3 90 37: TypeArray 32(float) 36 9138(gl_MeshPerVertexEXT): TypeStruct 33(fvec4) 32(float) 35 37 92 39: TypeArray 38(gl_MeshPerVertexEXT) 27 93 40: TypePointer Output 39 9441(gl_MeshVerticesEXT): 40(ptr) Variable Output 95 43: TypeInt 32 1 96 44: 43(int) Constant 0 97 45: 32(float) Constant 1065353216 98 46: 33(fvec4) ConstantComposite 45 45 45 45 99 47: TypePointer Output 33(fvec4) 100 50: 43(int) Constant 1 101 51: 32(float) Constant 1073741824 102 52: TypePointer Output 32(float) 103 55: 43(int) Constant 2 104 56: 43(int) Constant 3 105 57: 32(float) Constant 1077936128 106 60: 32(float) Constant 1082130432 107 62: 8(int) Constant 1 108 63: 8(int) Constant 264 109 64: 8(int) Constant 2 110 65: TypeBool 11166(gl_MeshPerPrimitiveEXT): TypeStruct 43(int) 43(int) 43(int) 65(bool) 112 67: TypeArray 66(gl_MeshPerPrimitiveEXT) 29 113 68: TypePointer Output 67 11469(gl_MeshPrimitivesEXT): 68(ptr) Variable Output 115 71: 43(int) Constant 6 116 72: TypePointer Output 43(int) 117 75: 43(int) Constant 7 118 78: 43(int) Constant 8 119 81: 65(bool) ConstantFalse 120 82: TypePointer Output 65(bool) 121 84: TypeArray 11(ivec3) 29 122 85: TypePointer Output 84 12386(gl_PrimitiveTriangleIndicesEXT): 85(ptr) Variable Output 124 87: 8(int) Constant 257 125 88: 11(ivec3) ConstantComposite 87 87 87 126 89: TypePointer Output 11(ivec3) 127 93: 11(ivec3) ConstantComposite 64 64 64 128 96: 11(ivec3) ConstantComposite 14 14 14 129 98: TypePointer Function 43(int) 130 100: TypePointer Input 43(int) 131101(gl_DrawIDARB): 100(ptr) Variable Input 132104(gl_ViewIndex): 100(ptr) Variable Input 133 106: 11(ivec3) ConstantComposite 29 62 62 134 4(main): 2 Function None 3 135 5: Label 136 10(iid): 9(ptr) Variable Function 137 18(gid): 9(ptr) Variable Function 13823(numWorkGrous): 22(ptr) Variable Function 139 26(vertexCount): 9(ptr) Variable Function 14028(primitiveCount): 9(ptr) Variable Function 141 16: 15(ptr) AccessChain 13(gl_LocalInvocationID) 14 142 17: 8(int) Load 16 143 Store 10(iid) 17 144 20: 15(ptr) AccessChain 19(gl_WorkGroupID) 14 145 21: 8(int) Load 20 146 Store 18(gid) 21 147 25: 11(ivec3) Load 24(gl_NumWorkGroups) 148 Store 23(numWorkGrous) 25 149 Store 26(vertexCount) 27 150 Store 28(primitiveCount) 29 151 30: 8(int) Load 26(vertexCount) 152 31: 8(int) Load 28(primitiveCount) 153 SetMeshOutputsEXT 30 31 154 42: 8(int) Load 10(iid) 155 48: 47(ptr) AccessChain 41(gl_MeshVerticesEXT) 42 44 156 Store 48 46 157 49: 8(int) Load 10(iid) 158 53: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 49 50 159 Store 53 51 160 54: 8(int) Load 10(iid) 161 58: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 54 55 56 162 Store 58 57 163 59: 8(int) Load 10(iid) 164 61: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 59 56 55 165 Store 61 60 166 MemoryBarrier 62 63 167 ControlBarrier 64 64 63 168 70: 8(int) Load 10(iid) 169 73: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 70 44 170 Store 73 71 171 74: 8(int) Load 10(iid) 172 76: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 74 50 173 Store 76 75 174 77: 8(int) Load 10(iid) 175 79: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 77 55 176 Store 79 78 177 80: 8(int) Load 10(iid) 178 83: 82(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 80 56 179 Store 83 81 180 MemoryBarrier 62 63 181 ControlBarrier 64 64 63 182 90: 89(ptr) AccessChain 86(gl_PrimitiveTriangleIndicesEXT) 44 183 Store 90 88 184 91: 8(int) Load 28(primitiveCount) 185 92: 8(int) ISub 91 62 186 94: 89(ptr) AccessChain 86(gl_PrimitiveTriangleIndicesEXT) 92 187 Store 94 93 188 95: 8(int) Load 18(gid) 189 97: 89(ptr) AccessChain 86(gl_PrimitiveTriangleIndicesEXT) 95 190 Store 97 96 191 MemoryBarrier 62 63 192 ControlBarrier 64 64 63 193 Return 194 FunctionEnd 1956(testAdditionalBuiltins(): 2 Function None 3 196 7: Label 197 99(id): 98(ptr) Variable Function 198 103(viewIdx): 98(ptr) Variable Function 199 102: 43(int) Load 101(gl_DrawIDARB) 200 Store 99(id) 102 201 105: 43(int) Load 104(gl_ViewIndex) 202 Store 103(viewIdx) 105 203 Return 204 FunctionEnd