Contents

encode(commandBuffer:sourceTexture:destinationTexture:)

Encodes a kernel into a command buffer, out of place.

Declaration

func encode(commandBuffer: any MTLCommandBuffer, sourceTexture: any MTLTexture, destinationTexture: any MTLTexture)

Parameters

  • commandBuffer:

    A valid command buffer to receive the encoded kernel.

  • sourceTexture:

    A valid texture containing the source image.

  • destinationTexture:

    A valid texture to be overwritten by the result image. destinationTexture may not alias sourceTexture.

See Also

Methods