MTLTexture.replaceRegion

Copies a block of pixels into a section of texture slice 0.

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

Meta