internal/graphicsdriver/metal/mtl/mtl.go
func (t Texture) GetBytes(pixelBytes *byte, bytesPerRow uintptr, region Region, level int) {
	r := region.c()
	C.Texture_GetBytes(t.texture, unsafe.Pointer(pixelBytes), C.size_t(bytesPerRow), r, C.uint_t(level))
}
func (t Texture) GetBytes(pixelBytes *byte, bytesPerRow uintptr, region Region, level int) {
	r := region.c()
	C.Texture_GetBytes(t.texture, unsafe.Pointer(pixelBytes), C.size_t(bytesPerRow), r, C.uint_t(level))
}
func ( t Texture ) GetBytes ( pixelBytes * byte , bytesPerRow uintptr , region Region , level int ) { r := region . c ( ) C . Texture_GetBytes ( t . texture , unsafe . Pointer ( pixelBytes ) , C . size_t ( bytesPerRow ) , r , C . uint_t ( level ) ) }
// GetBytes copies a block of pixels from the storage allocation of texture
// slice zero into system memory at a specified address.
//
// Reference: https://developer.apple.com/documentation/metal/mtltexture/1515751-getbytes.
GetBytes copies a block of pixels from the storage allocation of texture slice zero into system memory at a specified address . Reference : https : // developer . apple . com / documentation / metal / mtltexture / 1515751 - getbytes .