Interface MTLIndirectRenderCommand


  • public interface MTLIndirectRenderCommand
    Describes a CPU-recorded indirect render command
    • Method Detail

      • drawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride

        void drawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride​(long numberOfPatchControlPoints,
                                                                                                                                                                                                                                                                   long patchStart,
                                                                                                                                                                                                                                                                   long patchCount,
                                                                                                                                                                                                                                                                   MTLBuffer patchIndexBuffer,
                                                                                                                                                                                                                                                                   long patchIndexBufferOffset,
                                                                                                                                                                                                                                                                   MTLBuffer controlPointIndexBuffer,
                                                                                                                                                                                                                                                                   long controlPointIndexBufferOffset,
                                                                                                                                                                                                                                                                   long instanceCount,
                                                                                                                                                                                                                                                                   long baseInstance,
                                                                                                                                                                                                                                                                   MTLBuffer buffer,
                                                                                                                                                                                                                                                                   long offset,
                                                                                                                                                                                                                                                                   long instanceStride)
      • drawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance

        void drawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance​(long primitiveType,
                                                                                                                     long indexCount,
                                                                                                                     long indexType,
                                                                                                                     MTLBuffer indexBuffer,
                                                                                                                     long indexBufferOffset,
                                                                                                                     long instanceCount,
                                                                                                                     long baseVertex,
                                                                                                                     long baseInstance)
      • drawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride

        void drawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride​(long numberOfPatchControlPoints,
                                                                                                                                                                                                        long patchStart,
                                                                                                                                                                                                        long patchCount,
                                                                                                                                                                                                        MTLBuffer patchIndexBuffer,
                                                                                                                                                                                                        long patchIndexBufferOffset,
                                                                                                                                                                                                        long instanceCount,
                                                                                                                                                                                                        long baseInstance,
                                                                                                                                                                                                        MTLBuffer buffer,
                                                                                                                                                                                                        long offset,
                                                                                                                                                                                                        long instanceStride)
      • drawPrimitivesVertexStartVertexCountInstanceCountBaseInstance

        void drawPrimitivesVertexStartVertexCountInstanceCountBaseInstance​(long primitiveType,
                                                                           long vertexStart,
                                                                           long vertexCount,
                                                                           long instanceCount,
                                                                           long baseInstance)
      • reset

        void reset()
      • setFragmentBufferOffsetAtIndex

        void setFragmentBufferOffsetAtIndex​(MTLBuffer buffer,
                                            long offset,
                                            long index)
      • setVertexBufferOffsetAtIndex

        void setVertexBufferOffsetAtIndex​(MTLBuffer buffer,
                                          long offset,
                                          long index)