d-metal-binding v1.1.1 (2023-03-29T00:11:10Z)
Dub
Repo
MTLBlitCommandEncoder.copyFromTexture
metal
blitcommandencoder
MTLBlitCommandEncoder
Encodes a command that copies slices of a texture to another texture’s slices.
void
copyFromTexture
(MTLTexture source, MTLTexture ddestination)
void
copyFromTexture
(MTLTexture sourceTexture, NSUInteger sourceSlice, NSUInteger sourceLevel, MTLTexture destinationTexture, NSUInteger destinationSlice, NSUInteger destinationLevel, NSUInteger sliceCount, NSUInteger levelCount)
interface
MTLBlitCommandEncoder
@
selector
("copyFromTexture:sourceSlice:sourceLevel:toTexture:destinationSlice:destinationLevel:sliceCount:levelCount:")
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)
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 slices of a texture to another texture’s slices.