spv.ext.meshShaderRedeclBuiltins.mesh // Module Version 10400 // Generated by (magic number): 8000b // Id's are bound by 80 Capability ClipDistance Capability CullDistance Capability MeshShadingEXT Extension "SPV_EXT_mesh_shader" 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint MeshEXT 4 "main" 11 17 29 57 74 ExecutionMode 4 LocalSize 32 1 1 ExecutionMode 4 OutputVertices 81 ExecutionMode 4 OutputPrimitivesNV 32 ExecutionMode 4 OutputPoints Source GLSL 460 SourceExtension "GL_EXT_mesh_shader" Name 4 "main" Name 8 "iid" Name 11 "gl_LocalInvocationID" Name 16 "gid" Name 17 "gl_WorkGroupID" Name 26 "gl_MeshPerVertexEXT" MemberName 26(gl_MeshPerVertexEXT) 0 "gl_Position" MemberName 26(gl_MeshPerVertexEXT) 1 "gl_PointSize" MemberName 26(gl_MeshPerVertexEXT) 2 "gl_ClipDistance" MemberName 26(gl_MeshPerVertexEXT) 3 "gl_CullDistance" Name 29 "gl_MeshVerticesEXT" Name 54 "gl_MeshPerPrimitiveEXT" MemberName 54(gl_MeshPerPrimitiveEXT) 0 "gl_PrimitiveID" MemberName 54(gl_MeshPerPrimitiveEXT) 1 "gl_Layer" MemberName 54(gl_MeshPerPrimitiveEXT) 2 "gl_ViewportIndex" MemberName 54(gl_MeshPerPrimitiveEXT) 3 "gl_CullPrimitiveEXT" Name 57 "gl_MeshPrimitivesEXT" Name 74 "gl_PrimitivePointIndicesEXT" Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId Decorate 17(gl_WorkGroupID) BuiltIn WorkgroupId Decorate 26(gl_MeshPerVertexEXT) Block MemberDecorate 26(gl_MeshPerVertexEXT) 0 BuiltIn Position MemberDecorate 26(gl_MeshPerVertexEXT) 1 BuiltIn PointSize MemberDecorate 26(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance MemberDecorate 26(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance Decorate 54(gl_MeshPerPrimitiveEXT) Block MemberDecorate 54(gl_MeshPerPrimitiveEXT) 0 BuiltIn PrimitiveId MemberDecorate 54(gl_MeshPerPrimitiveEXT) 0 PerPrimitiveNV MemberDecorate 54(gl_MeshPerPrimitiveEXT) 1 BuiltIn Layer MemberDecorate 54(gl_MeshPerPrimitiveEXT) 1 PerPrimitiveNV MemberDecorate 54(gl_MeshPerPrimitiveEXT) 2 BuiltIn ViewportIndex MemberDecorate 54(gl_MeshPerPrimitiveEXT) 2 PerPrimitiveNV MemberDecorate 54(gl_MeshPerPrimitiveEXT) 3 BuiltIn CullPrimitiveEXT MemberDecorate 54(gl_MeshPerPrimitiveEXT) 3 PerPrimitiveNV Decorate 74(gl_PrimitivePointIndicesEXT) BuiltIn PrimitivePointIndicesEXT Decorate 79 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: 6(int) Constant 81 21: 6(int) Constant 32 22: TypeFloat 32 23: TypeVector 22(float) 4 24: 6(int) Constant 4 25: TypeArray 22(float) 24 26(gl_MeshPerVertexEXT): TypeStruct 23(fvec4) 22(float) 25 25 27: TypeArray 26(gl_MeshPerVertexEXT) 20 28: TypePointer Output 27 29(gl_MeshVerticesEXT): 28(ptr) Variable Output 31: TypeInt 32 1 32: 31(int) Constant 0 33: 22(float) Constant 1065353216 34: 23(fvec4) ConstantComposite 33 33 33 33 35: TypePointer Output 23(fvec4) 38: 31(int) Constant 1 39: 22(float) Constant 1073741824 40: TypePointer Output 22(float) 43: 31(int) Constant 2 44: 31(int) Constant 3 45: 22(float) Constant 1077936128 48: 22(float) Constant 1082130432 50: 6(int) Constant 1 51: 6(int) Constant 264 52: 6(int) Constant 2 53: TypeBool 54(gl_MeshPerPrimitiveEXT): TypeStruct 31(int) 31(int) 31(int) 53(bool) 55: TypeArray 54(gl_MeshPerPrimitiveEXT) 21 56: TypePointer Output 55 57(gl_MeshPrimitivesEXT): 56(ptr) Variable Output 59: 31(int) Constant 6 60: TypePointer Output 31(int) 63: 31(int) Constant 7 66: 31(int) Constant 8 69: 53(bool) ConstantFalse 70: TypePointer Output 53(bool) 72: TypeArray 6(int) 21 73: TypePointer Output 72 74(gl_PrimitivePointIndicesEXT): 73(ptr) Variable Output 75: TypePointer Output 6(int) 77: 31(int) Constant 31 79: 9(ivec3) ConstantComposite 21 50 50 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 SetMeshOutputsEXT 20 21 30: 6(int) Load 8(iid) 36: 35(ptr) AccessChain 29(gl_MeshVerticesEXT) 30 32 Store 36 34 37: 6(int) Load 8(iid) 41: 40(ptr) AccessChain 29(gl_MeshVerticesEXT) 37 38 Store 41 39 42: 6(int) Load 8(iid) 46: 40(ptr) AccessChain 29(gl_MeshVerticesEXT) 42 43 44 Store 46 45 47: 6(int) Load 8(iid) 49: 40(ptr) AccessChain 29(gl_MeshVerticesEXT) 47 44 43 Store 49 48 MemoryBarrier 50 51 ControlBarrier 52 52 51 58: 6(int) Load 8(iid) 61: 60(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 58 32 Store 61 59 62: 6(int) Load 8(iid) 64: 60(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 62 38 Store 64 63 65: 6(int) Load 8(iid) 67: 60(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 65 43 Store 67 66 68: 6(int) Load 8(iid) 71: 70(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 68 44 Store 71 69 MemoryBarrier 50 51 ControlBarrier 52 52 51 76: 75(ptr) AccessChain 74(gl_PrimitivePointIndicesEXT) 32 Store 76 50 78: 75(ptr) AccessChain 74(gl_PrimitivePointIndicesEXT) 77 Store 78 52 Return FunctionEnd