MTLTexture.getBytes

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

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

Meta