Class MTLBlitCommandEncoder

    • Constructor Detail

      • MTLBlitCommandEncoder

        public MTLBlitCommandEncoder()
    • Method Detail

      • 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)
      • 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.
      • 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.
      • optimizeIndirectCommandBuffer

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