d-metal-binding v1.0.4 (2023-03-15T23:34:54Z)
Dub
Repo
MTLTexture.getBytes
metal
texture
MTLTexture
Copies pixel data from the texture to a buffer in system memory.
void
getBytes
(void* outPixelBytes, NSUInteger bytesPerRow, NSUInteger bytesPerImage, MTLRegion fromRegion, NSUInteger mipmapLevel, NSUInteger slice)
interface
MTLTexture
@
selector
("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")
void
getBytes
(
void
*
outPixelBytes
,
NSUInteger
bytesPerRow
,
NSUInteger
bytesPerImage
,
MTLRegion
fromRegion
,
NSUInteger
mipmapLevel
,
NSUInteger
slice
)
void
getBytes
(void* outPixelBytes, NSUInteger bytesPerRow, MTLRegion fromRegion, NSUInteger mipmapLevel)
Meta
Source
See Implementation
metal
texture
MTLTexture
aliases
isFramebufferOnly
isShareable
functions
allowGPUOptimizedContents
arrayLength
buffer
bufferBytesPerRow
compressionType
depth
firstMipmapInTail
framebufferOnly
getBytes
height
isSparse
mipmapLevelCount
newRemoteTextureViewForDevice
newTextureViewPixelFormat
newTextureViewWithPixelFormat
offset
parentRelativeLevel
parentRelativeSlice
parentTexture
pixelFormat
remoteStorageTexture
replaceRegion
sampleCount
shareable
swizzle
tailSizeInBytes
textureType
usage
width
Copies pixel data from the texture to a buffer in system memory.