MTLTexture.replaceRegion

Copies pixel data into a section of a texture slice.

  1. void replaceRegion(MTLRegion region, NSUInteger mipmapLevel, NSUInteger slice, const(void)* withBytes, NSUInteger bytesPerRow, NSUInteger bytesPerImage)
    interface MTLTexture
    @selector("replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:")
    void
    replaceRegion
  2. void replaceRegion(MTLRegion region, NSUInteger mipmapLevel, const(void)* withBytes, NSUInteger bytesPerRow)

Meta