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
    @nogc nothrow
    @selector("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")
    void
    getBytes
    (,
    NSUInteger bytesPerRow
    ,
    NSUInteger bytesPerImage
    ,,
    NSUInteger mipmapLevel
    ,
    NSUInteger slice
    )
  2. void getBytes(void* outPixelBytes, NSUInteger bytesPerRow, MTLRegion fromRegion, NSUInteger mipmapLevel)

Meta