Class MTLBlitCommandEncoder

All Implemented Interfaces:
NSObjectProtocol, MTLCommandEncoder, ObjCProtocol

public final class MTLBlitCommandEncoder
extends NSObject
implements MTLCommandEncoder
  • Constructor Details

    • MTLBlitCommandEncoder

      public MTLBlitCommandEncoder()
  • Method Details

    • getDevice

      public MTLDevice getDevice()
      Specified by:
      getDevice in interface MTLCommandEncoder
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface MTLCommandEncoder
    • setLabel

      public void setLabel​(String v)
      Specified by:
      setLabel in interface MTLCommandEncoder
    • copyFromTextureToTexture

      public void copyFromTextureToTexture​(MTLTexture sourceTexture, long sourceSlice, long sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, MTLTexture destinationTexture, long destinationSlice, long destinationLevel, MTLOrigin destinationOrigin)
    • copyFromBufferToTexture

      public void copyFromBufferToTexture​(MTLBuffer sourceBuffer, long sourceOffset, long sourceBytesPerRow, long sourceBytesPerImage, MTLSize sourceSize, MTLTexture destinationTexture, long destinationSlice, long destinationLevel, MTLOrigin destinationOrigin)
    • copyFromBufferToTexture

      public void copyFromBufferToTexture​(MTLBuffer sourceBuffer, long sourceOffset, long sourceBytesPerRow, long sourceBytesPerImage, MTLSize sourceSize, MTLTexture destinationTexture, long destinationSlice, long destinationLevel, MTLOrigin destinationOrigin, MTLBlitOption options)
      Since:
      Available in iOS 9.0 and later.
    • copyFromTextureToBuffer

      public void copyFromTextureToBuffer​(MTLTexture sourceTexture, long sourceSlice, long sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, MTLBuffer destinationBuffer, long destinationOffset, long destinationBytesPerRow, long destinationBytesPerImage)
    • copyFromTextureToBuffer

      public void copyFromTextureToBuffer​(MTLTexture sourceTexture, long sourceSlice, long sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, MTLBuffer destinationBuffer, long destinationOffset, long destinationBytesPerRow, long destinationBytesPerImage, MTLBlitOption options)
      Since:
      Available in iOS 9.0 and later.
    • generateMipmapsForTexture

      public void generateMipmapsForTexture​(MTLTexture texture)
    • fillBuffer

      public void fillBuffer​(MTLBuffer buffer, NSRange range, byte value)
    • copyFromTextureToTexture

      public void copyFromTextureToTexture​(MTLTexture sourceTexture, long sourceSlice, long sourceLevel, MTLTexture destinationTexture, long destinationSlice, long destinationLevel, long sliceCount, long levelCount)
      Since:
      Available in iOS 13.0 and later.
    • copyFromTextureToTexture

      public void copyFromTextureToTexture​(MTLTexture sourceTexture, MTLTexture destinationTexture)
      Since:
      Available in iOS 13.0 and later.
    • copyFromBufferToBuffer

      public void copyFromBufferToBuffer​(MTLBuffer sourceBuffer, long sourceOffset, MTLBuffer destinationBuffer, long destinationOffset, long size)
    • updateFence

      public void updateFence​(MTLFence fence)
      Since:
      Available in iOS 10.0 and later.
    • waitForFence

      public void waitForFence​(MTLFence fence)
      Since:
      Available in iOS 10.0 and later.
    • getTextureAccessCounters

      public void getTextureAccessCounters​(MTLTexture texture, MTLRegion region, long mipLevel, long slice, boolean resetCounters, MTLBuffer countersBuffer, long countersBufferOffset)
      Since:
      Available in iOS 13.0 and later.
    • resetTextureAccessCounters

      public void resetTextureAccessCounters​(MTLTexture texture, MTLRegion region, long mipLevel, long slice)
      Since:
      Available in iOS 13.0 and later.
    • optimizeContentsForGPUAccess

      public void optimizeContentsForGPUAccess​(MTLTexture texture)
      Since:
      Available in iOS 12.0 and later.
    • optimizeContentsForGPUAccess

      public void optimizeContentsForGPUAccess​(MTLTexture texture, long slice, long level)
      Since:
      Available in iOS 12.0 and later.
    • optimizeContentsForCPUAccess

      public void optimizeContentsForCPUAccess​(MTLTexture texture)
      Since:
      Available in iOS 12.0 and later.
    • optimizeContentsForCPUAccess

      public void optimizeContentsForCPUAccess​(MTLTexture texture, long slice, long level)
      Since:
      Available in iOS 12.0 and later.
    • resetCommandsInBuffer

      public void resetCommandsInBuffer​(MTLIndirectCommandBuffer buffer, NSRange range)
      Since:
      Available in iOS 12.0 and later.
    • copyIndirectCommandBuffer

      public void copyIndirectCommandBuffer​(MTLIndirectCommandBuffer source, NSRange sourceRange, MTLIndirectCommandBuffer destination, long destinationIndex)
      Since:
      Available in iOS 12.0 and later.
    • optimizeIndirectCommandBuffer

      public void optimizeIndirectCommandBuffer​(MTLIndirectCommandBuffer indirectCommandBuffer, NSRange range)
      Since:
      Available in iOS 12.0 and later.
    • sampleCountersInBuffer

      public void sampleCountersInBuffer​(MTLCounterSampleBuffer sampleBuffer, long sampleIndex, boolean barrier)
      Since:
      Available in iOS 14.0 and later.
    • resolveCounters

      public void resolveCounters​(MTLCounterSampleBuffer sampleBuffer, NSRange range, MTLBuffer destinationBuffer, long destinationOffset)
      Since:
      Available in iOS 14.0 and later.
    • endEncoding

      public void endEncoding()
      Specified by:
      endEncoding in interface MTLCommandEncoder
    • insertDebugSignpost

      public void insertDebugSignpost​(String string)
      Specified by:
      insertDebugSignpost in interface MTLCommandEncoder
    • pushDebugGroup

      public void pushDebugGroup​(String string)
      Specified by:
      pushDebugGroup in interface MTLCommandEncoder
    • popDebugGroup

      public void popDebugGroup()
      Specified by:
      popDebugGroup in interface MTLCommandEncoder