Interface MTLCommandBuffer

All Superinterfaces:
NSObjectProtocol, ObjCProtocol
All Known Implementing Classes:
MPSCommandBuffer

public interface MTLCommandBuffer
extends NSObjectProtocol
  • Method Details

    • getDevice

      MTLDevice getDevice()
    • getCommandQueue

      MTLCommandQueue getCommandQueue()
    • maintainsRetainedReferences

      boolean maintainsRetainedReferences()
    • getErrorOptions

      MTLCommandBufferErrorOption getErrorOptions()
      Since:
      Available in iOS 14.0 and later.
    • getLabel

      String getLabel()
    • setLabel

      void setLabel​(String v)
    • getKernelStartTime

      double getKernelStartTime()
      Since:
      Available in iOS 10.3 and later.
    • getKernelEndTime

      double getKernelEndTime()
      Since:
      Available in iOS 10.3 and later.
    • getLogs

      MTLLogContainer getLogs()
      Since:
      Available in iOS 14.0 and later.
    • getGPUStartTime

      double getGPUStartTime()
      Since:
      Available in iOS 10.3 and later.
    • getGPUEndTime

      double getGPUEndTime()
      Since:
      Available in iOS 10.3 and later.
    • getStatus

    • getError

      NSError getError()
    • enqueue

      void enqueue()
    • commit

      void commit()
    • addScheduledHandler

      void addScheduledHandler​(VoidBlock1<MTLCommandBuffer> block)
    • presentDrawable

      void presentDrawable​(MTLDrawable drawable)
    • presentDrawableAtTime

      void presentDrawableAtTime​(MTLDrawable drawable, double presentationTime)
    • presentDrawableAfterMinimumDuration

      void presentDrawableAfterMinimumDuration​(MTLDrawable drawable, double duration)
      Since:
      Available in iOS 10.3 and later.
    • waitUntilScheduled

      void waitUntilScheduled()
    • addCompletedHandler

      void addCompletedHandler​(VoidBlock1<MTLCommandBuffer> block)
    • waitUntilCompleted

      void waitUntilCompleted()
    • newBlitCommandEncoder

      MTLBlitCommandEncoder newBlitCommandEncoder()
    • newRenderCommandEncoder

      MTLRenderCommandEncoder newRenderCommandEncoder​(MTLRenderPassDescriptor renderPassDescriptor)
    • computeCommandEncoder

      MTLComputeCommandEncoder computeCommandEncoder​(MTLComputePassDescriptor computePassDescriptor)
      Since:
      Available in iOS 14.0 and later.
    • blitCommandEncoder

      MTLBlitCommandEncoder blitCommandEncoder​(MTLBlitPassDescriptor blitPassDescriptor)
      Since:
      Available in iOS 14.0 and later.
    • newComputeCommandEncoder

      MTLComputeCommandEncoder newComputeCommandEncoder()
    • newComputeCommandEncoder

      MTLComputeCommandEncoder newComputeCommandEncoder​(MTLDispatchType dispatchType)
      Since:
      Available in iOS 12.0 and later.
    • encodeWaitForEvent

      void encodeWaitForEvent​(MTLEvent event, long value)
      Since:
      Available in iOS 12.0 and later.
    • encodeSignalEvent

      void encodeSignalEvent​(MTLEvent event, long value)
      Since:
      Available in iOS 12.0 and later.
    • newParallelRenderCommandEncoder

      MTLParallelRenderCommandEncoder newParallelRenderCommandEncoder​(MTLRenderPassDescriptor renderPassDescriptor)
    • resourceStateCommandEncoder

      MTLResourceStateCommandEncoder resourceStateCommandEncoder()
      Since:
      Available in iOS 13.0 and later.
    • resourceStateCommandEncoder

      MTLResourceStateCommandEncoder resourceStateCommandEncoder​(MTLResourceStatePassDescriptor resourceStatePassDescriptor)
      Since:
      Available in iOS 14.0 and later.
    • accelerationStructureCommandEncoder

      MTLAccelerationStructureCommandEncoder accelerationStructureCommandEncoder()
      Since:
      Available in iOS 14.0 and later.
    • pushDebugGroup

      void pushDebugGroup​(String string)
      Since:
      Available in iOS 11.0 and later.
    • popDebugGroup

      void popDebugGroup()
      Since:
      Available in iOS 11.0 and later.