spv.ext.meshShaderBuiltins.mesh // Module Version 10400 // Generated by (magic number): 8000b // Id's are bound by 107 Capability ClipDistance Capability CullDistance Capability DrawParameters Capability MultiView Capability MeshShadingEXT Extension "SPV_EXT_mesh_shader" 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint MeshEXT 4 "main" 13 19 24 41 69 86 101 104 ExecutionMode 4 LocalSize 32 1 1 ExecutionMode 4 OutputVertices 81 ExecutionMode 4 OutputPrimitivesNV 32 ExecutionMode 4 OutputTrianglesNV Source GLSL 460 SourceExtension "GL_ARB_shader_draw_parameters" SourceExtension "GL_EXT_mesh_shader" SourceExtension "GL_EXT_multiview" Name 4 "main" Name 6 "testAdditionalBuiltins(" Name 10 "iid" Name 13 "gl_LocalInvocationID" Name 18 "gid" Name 19 "gl_WorkGroupID" Name 23 "numWorkGrous" Name 24 "gl_NumWorkGroups" Name 26 "vertexCount" Name 28 "primitiveCount" Name 38 "gl_MeshPerVertexEXT" MemberName 38(gl_MeshPerVertexEXT) 0 "gl_Position" MemberName 38(gl_MeshPerVertexEXT) 1 "gl_PointSize" MemberName 38(gl_MeshPerVertexEXT) 2 "gl_ClipDistance" MemberName 38(gl_MeshPerVertexEXT) 3 "gl_CullDistance" Name 41 "gl_MeshVerticesEXT" Name 66 "gl_MeshPerPrimitiveEXT" MemberName 66(gl_MeshPerPrimitiveEXT) 0 "gl_PrimitiveID" MemberName 66(gl_MeshPerPrimitiveEXT) 1 "gl_Layer" MemberName 66(gl_MeshPerPrimitiveEXT) 2 "gl_ViewportIndex" MemberName 66(gl_MeshPerPrimitiveEXT) 3 "gl_CullPrimitiveEXT" Name 69 "gl_MeshPrimitivesEXT" Name 86 "gl_PrimitiveTriangleIndicesEXT" Name 99 "id" Name 101 "gl_DrawIDARB" Name 103 "viewIdx" Name 104 "gl_ViewIndex" Decorate 13(gl_LocalInvocationID) BuiltIn LocalInvocationId Decorate 19(gl_WorkGroupID) BuiltIn WorkgroupId Decorate 24(gl_NumWorkGroups) BuiltIn NumWorkgroups Decorate 38(gl_MeshPerVertexEXT) Block MemberDecorate 38(gl_MeshPerVertexEXT) 0 BuiltIn Position MemberDecorate 38(gl_MeshPerVertexEXT) 1 BuiltIn PointSize MemberDecorate 38(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance MemberDecorate 38(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance Decorate 66(gl_MeshPerPrimitiveEXT) Block MemberDecorate 66(gl_MeshPerPrimitiveEXT) 0 BuiltIn PrimitiveId MemberDecorate 66(gl_MeshPerPrimitiveEXT) 0 PerPrimitiveNV MemberDecorate 66(gl_MeshPerPrimitiveEXT) 1 BuiltIn Layer MemberDecorate 66(gl_MeshPerPrimitiveEXT) 1 PerPrimitiveNV MemberDecorate 66(gl_MeshPerPrimitiveEXT) 2 BuiltIn ViewportIndex MemberDecorate 66(gl_MeshPerPrimitiveEXT) 2 PerPrimitiveNV MemberDecorate 66(gl_MeshPerPrimitiveEXT) 3 BuiltIn CullPrimitiveEXT MemberDecorate 66(gl_MeshPerPrimitiveEXT) 3 PerPrimitiveNV Decorate 86(gl_PrimitiveTriangleIndicesEXT) BuiltIn PrimitiveTriangleIndicesEXT Decorate 101(gl_DrawIDARB) BuiltIn DrawIndex Decorate 104(gl_ViewIndex) BuiltIn ViewIndex Decorate 106 BuiltIn WorkgroupSize 2: TypeVoid 3: TypeFunction 2 8: TypeInt 32 0 9: TypePointer Function 8(int) 11: TypeVector 8(int) 3 12: TypePointer Input 11(ivec3) 13(gl_LocalInvocationID): 12(ptr) Variable Input 14: 8(int) Constant 0 15: TypePointer Input 8(int) 19(gl_WorkGroupID): 12(ptr) Variable Input 22: TypePointer Function 11(ivec3) 24(gl_NumWorkGroups): 12(ptr) Variable Input 27: 8(int) Constant 81 29: 8(int) Constant 32 32: TypeFloat 32 33: TypeVector 32(float) 4 34: 8(int) Constant 4 35: TypeArray 32(float) 34 36: 8(int) Constant 3 37: TypeArray 32(float) 36 38(gl_MeshPerVertexEXT): TypeStruct 33(fvec4) 32(float) 35 37 39: TypeArray 38(gl_MeshPerVertexEXT) 27 40: TypePointer Output 39 41(gl_MeshVerticesEXT): 40(ptr) Variable Output 43: TypeInt 32 1 44: 43(int) Constant 0 45: 32(float) Constant 1065353216 46: 33(fvec4) ConstantComposite 45 45 45 45 47: TypePointer Output 33(fvec4) 50: 43(int) Constant 1 51: 32(float) Constant 1073741824 52: TypePointer Output 32(float) 55: 43(int) Constant 2 56: 43(int) Constant 3 57: 32(float) Constant 1077936128 60: 32(float) Constant 1082130432 62: 8(int) Constant 1 63: 8(int) Constant 264 64: 8(int) Constant 2 65: TypeBool 66(gl_MeshPerPrimitiveEXT): TypeStruct 43(int) 43(int) 43(int) 65(bool) 67: TypeArray 66(gl_MeshPerPrimitiveEXT) 29 68: TypePointer Output 67 69(gl_MeshPrimitivesEXT): 68(ptr) Variable Output 71: 43(int) Constant 6 72: TypePointer Output 43(int) 75: 43(int) Constant 7 78: 43(int) Constant 8 81: 65(bool) ConstantFalse 82: TypePointer Output 65(bool) 84: TypeArray 11(ivec3) 29 85: TypePointer Output 84 86(gl_PrimitiveTriangleIndicesEXT): 85(ptr) Variable Output 87: 8(int) Constant 257 88: 11(ivec3) ConstantComposite 87 87 87 89: TypePointer Output 11(ivec3) 93: 11(ivec3) ConstantComposite 64 64 64 96: 11(ivec3) ConstantComposite 14 14 14 98: TypePointer Function 43(int) 100: TypePointer Input 43(int) 101(gl_DrawIDARB): 100(ptr) Variable Input 104(gl_ViewIndex): 100(ptr) Variable Input 106: 11(ivec3) ConstantComposite 29 62 62 4(main): 2 Function None 3 5: Label 10(iid): 9(ptr) Variable Function 18(gid): 9(ptr) Variable Function 23(numWorkGrous): 22(ptr) Variable Function 26(vertexCount): 9(ptr) Variable Function 28(primitiveCount): 9(ptr) Variable Function 16: 15(ptr) AccessChain 13(gl_LocalInvocationID) 14 17: 8(int) Load 16 Store 10(iid) 17 20: 15(ptr) AccessChain 19(gl_WorkGroupID) 14 21: 8(int) Load 20 Store 18(gid) 21 25: 11(ivec3) Load 24(gl_NumWorkGroups) Store 23(numWorkGrous) 25 Store 26(vertexCount) 27 Store 28(primitiveCount) 29 30: 8(int) Load 26(vertexCount) 31: 8(int) Load 28(primitiveCount) SetMeshOutputsEXT 30 31 42: 8(int) Load 10(iid) 48: 47(ptr) AccessChain 41(gl_MeshVerticesEXT) 42 44 Store 48 46 49: 8(int) Load 10(iid) 53: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 49 50 Store 53 51 54: 8(int) Load 10(iid) 58: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 54 55 56 Store 58 57 59: 8(int) Load 10(iid) 61: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 59 56 55 Store 61 60 MemoryBarrier 62 63 ControlBarrier 64 64 63 70: 8(int) Load 10(iid) 73: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 70 44 Store 73 71 74: 8(int) Load 10(iid) 76: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 74 50 Store 76 75 77: 8(int) Load 10(iid) 79: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 77 55 Store 79 78 80: 8(int) Load 10(iid) 83: 82(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 80 56 Store 83 81 MemoryBarrier 62 63 ControlBarrier 64 64 63 90: 89(ptr) AccessChain 86(gl_PrimitiveTriangleIndicesEXT) 44 Store 90 88 91: 8(int) Load 28(primitiveCount) 92: 8(int) ISub 91 62 94: 89(ptr) AccessChain 86(gl_PrimitiveTriangleIndicesEXT) 92 Store 94 93 95: 8(int) Load 18(gid) 97: 89(ptr) AccessChain 86(gl_PrimitiveTriangleIndicesEXT) 95 Store 97 96 MemoryBarrier 62 63 ControlBarrier 64 64 63 Return FunctionEnd 6(testAdditionalBuiltins(): 2 Function None 3 7: Label 99(id): 98(ptr) Variable Function 103(viewIdx): 98(ptr) Variable Function 102: 43(int) Load 101(gl_DrawIDARB) Store 99(id) 102 105: 43(int) Load 104(gl_ViewIndex) Store 103(viewIdx) 105 Return FunctionEnd