Contents

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