spv.khrComputeShaderDerivatives.mesh // Module Version 10400 // Generated by (magic number): 8000b // Id's are bound by 73 Capability ImageQuery Capability MeshShadingEXT Capability ComputeDerivativeGroupLinearKHR Extension "SPV_EXT_mesh_shader" Extension "SPV_KHR_compute_shader_derivatives" 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint MeshEXT 4 "main" 10 24 39 48 62 ExecutionMode 4 LocalSize 4 1 1 ExecutionMode 4 DerivativeGroupLinearKHR ExecutionMode 4 OutputVertices 3 ExecutionMode 4 OutputPrimitivesNV 1 ExecutionMode 4 OutputTrianglesNV Source GLSL 450 SourceExtension "GL_EXT_mesh_shader" SourceExtension "GL_KHR_compute_shader_derivatives" Name 4 "main" Name 8 "iid" Name 10 "gl_LocalInvocationIndex" Name 14 "localDx" Name 20 "localLod" Name 24 "tex" Name 37 "Output" MemberName 37(Output) 0 "lod" Name 39 "outData" Name 48 "gl_PrimitiveTriangleIndicesEXT" Name 59 "gl_MeshPerVertexEXT" MemberName 59(gl_MeshPerVertexEXT) 0 "gl_Position" MemberName 59(gl_MeshPerVertexEXT) 1 "gl_PointSize" MemberName 59(gl_MeshPerVertexEXT) 2 "gl_ClipDistance" MemberName 59(gl_MeshPerVertexEXT) 3 "gl_CullDistance" Name 62 "gl_MeshVerticesEXT" Decorate 10(gl_LocalInvocationIndex) BuiltIn LocalInvocationIndex Decorate 24(tex) Binding 0 Decorate 24(tex) DescriptorSet 0 Decorate 37(Output) Block MemberDecorate 37(Output) 0 Offset 0 Decorate 39(outData) Binding 1 Decorate 39(outData) DescriptorSet 0 Decorate 48(gl_PrimitiveTriangleIndicesEXT) BuiltIn PrimitiveTriangleIndicesEXT Decorate 59(gl_MeshPerVertexEXT) Block MemberDecorate 59(gl_MeshPerVertexEXT) 0 BuiltIn Position MemberDecorate 59(gl_MeshPerVertexEXT) 1 BuiltIn PointSize MemberDecorate 59(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance MemberDecorate 59(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance Decorate 72 BuiltIn WorkgroupSize 2: TypeVoid 3: TypeFunction 2 6: TypeInt 32 0 7: TypePointer Function 6(int) 9: TypePointer Input 6(int) 10(gl_LocalInvocationIndex): 9(ptr) Variable Input 12: TypeFloat 32 13: TypePointer Function 12(float) 18: TypeVector 12(float) 2 19: TypePointer Function 18(fvec2) 21: TypeImage 12(float) 2D sampled format:Unknown 22: TypeSampledImage 21 23: TypePointer UniformConstant 22 24(tex): 23(ptr) Variable UniformConstant 26: 12(float) Constant 1056964608 27: 18(fvec2) ConstantComposite 26 26 30: 6(int) Constant 0 31: TypeBool 35: 6(int) Constant 3 36: 6(int) Constant 1 37(Output): TypeStruct 18(fvec2) 38: TypePointer StorageBuffer 37(Output) 39(outData): 38(ptr) Variable StorageBuffer 40: TypeInt 32 1 41: 40(int) Constant 0 43: TypePointer StorageBuffer 18(fvec2) 45: TypeVector 6(int) 3 46: TypeArray 45(ivec3) 36 47: TypePointer Output 46 48(gl_PrimitiveTriangleIndicesEXT): 47(ptr) Variable Output 49: 6(int) Constant 2 50: 45(ivec3) ConstantComposite 30 36 49 51: TypePointer Output 45(ivec3) 57: TypeVector 12(float) 4 58: TypeArray 12(float) 36 59(gl_MeshPerVertexEXT): TypeStruct 57(fvec4) 12(float) 58 58 60: TypeArray 59(gl_MeshPerVertexEXT) 35 61: TypePointer Output 60 62(gl_MeshVerticesEXT): 61(ptr) Variable Output 69: TypePointer Output 57(fvec4) 71: 6(int) Constant 4 72: 45(ivec3) ConstantComposite 71 36 36 4(main): 2 Function None 3 5: Label 8(iid): 7(ptr) Variable Function 14(localDx): 13(ptr) Variable Function 20(localLod): 19(ptr) Variable Function 11: 6(int) Load 10(gl_LocalInvocationIndex) Store 8(iid) 11 15: 6(int) Load 8(iid) 16: 12(float) ConvertUToF 15 17: 12(float) DPdx 16 Store 14(localDx) 17 25: 22 Load 24(tex) 28: 18(fvec2) ImageQueryLod 25 27 Store 20(localLod) 28 29: 6(int) Load 8(iid) 32: 31(bool) IEqual 29 30 SelectionMerge 34 None BranchConditional 32 33 34 33: Label SetMeshOutputsEXT 35 36 42: 18(fvec2) Load 20(localLod) 44: 43(ptr) AccessChain 39(outData) 41 Store 44 42 52: 51(ptr) AccessChain 48(gl_PrimitiveTriangleIndicesEXT) 41 Store 52 50 Branch 34 34: Label 53: 6(int) Load 8(iid) 54: 31(bool) ULessThan 53 35 SelectionMerge 56 None BranchConditional 54 55 56 55: Label 63: 6(int) Load 8(iid) 64: 12(float) Load 14(localDx) 65: 13(ptr) AccessChain 20(localLod) 30 66: 12(float) Load 65 67: 12(float) FAdd 64 66 68: 57(fvec4) CompositeConstruct 67 67 67 67 70: 69(ptr) AccessChain 62(gl_MeshVerticesEXT) 63 41 Store 70 68 Branch 56 56: Label Return FunctionEnd