MTLTexture.getBytes

Copies pixel data from the texture to a buffer in system memory.

  1. void getBytes(void* outPixelBytes, NSUInteger bytesPerRow, NSUInteger bytesPerImage, MTLRegion fromRegion, NSUInteger mipmapLevel, NSUInteger slice)
    interface MTLTexture
    @selector("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")
    void
    getBytes
  2. void getBytes(void* outPixelBytes, NSUInteger bytesPerRow, MTLRegion fromRegion, NSUInteger mipmapLevel)

Meta