copy(sourceTexture:destinationTexture:)
Encodes a command that copies data from a texture to another.
Declaration
func copy(sourceTexture: any MTLTexture, destinationTexture: any MTLTexture)Parameters
- sourceTexture:
An Mtltexture instance the command copies data from.
- destinationTexture:
Another Mtltexture instance the command copies the data into that has the same Pixelformat and Samplecount as
sourceTexture.
See Also
Encoding texture copy commands
copy(sourceTensor:sourceOrigin:sourceDimensions:destinationTensor:destinationOrigin:destinationDimensions:)copy(sourceTexture:sourceSlice:sourceLevel:destinationTexture:destinationSlice:destinationLevel:sliceCount:levelCount:)copy(sourceTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:destinationTexture:destinationSlice:destinationLevel:destinationOrigin:)