d-metal-binding v1.1.1 (2023-03-29T00:11:10Z)
Dub
Repo
MTLBlitCommandEncoder.copyFromTexture
metal
blitcommandencoder
MTLBlitCommandEncoder
Encodes a command that copies image data from a texture slice to a buffer.
void
copyFromTexture
(MTLTexture source, MTLTexture ddestination)
void
copyFromTexture
(MTLTexture sourceTexture, NSUInteger sourceSlice, NSUInteger sourceLevel, MTLTexture destinationTexture, NSUInteger destinationSlice, NSUInteger destinationLevel, NSUInteger sliceCount, NSUInteger levelCount)
void
copyFromTexture
(MTLTexture sourceTexture, NSUInteger sourceSlice, NSUInteger sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, MTLTexture destinationTexture, NSUInteger destinationSlice, NSUInteger destinationLevel, MTLOrigin destinationOrigin)
void
copyFromTexture
(MTLTexture sourceTexture, NSUInteger sourceSlice, NSUInteger sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, MTLBuffer destinationBuffer, NSUInteger destinationOffset, NSUInteger destinationBytesPerRow, NSUInteger destinationBytesPerImage)
interface
MTLBlitCommandEncoder
@
selector
("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:")
void
copyFromTexture
(
MTLTexture
sourceTexture
,
NSUInteger
sourceSlice
,
NSUInteger
sourceLevel
,
MTLOrigin
sourceOrigin
,
MTLSize
sourceSize
,
MTLBuffer
destinationBuffer
,
NSUInteger
destinationOffset
,
NSUInteger
destinationBytesPerRow
,
NSUInteger
destinationBytesPerImage
)
void
copyFromTexture
(MTLTexture sourceTexture, NSUInteger sourceSlice, NSUInteger sourceLevel, MTLOrigin sourceOrigin, MTLSize sourceSize, MTLBuffer destinationBuffer, NSUInteger destinationOffset, NSUInteger destinationBytesPerRow, NSUInteger destinationBytesPerImage, MTLBlitOption options)
Meta
Source
See Implementation
metal
blitcommandencoder
MTLBlitCommandEncoder
functions
copyFromBuffer
copyFromTexture
fillBuffer
generateMipmapsForTexture
getTextureAccessCounters
optimizeContentsForCPUAccess
optimizeContentsForGPUAccess
resetTextureAccessCounters
synchronizeResource
synchronizeTexture
updateFence
waitForFence
Encodes a command that copies image data from a texture slice to a buffer.