Contents

encode(commandBuffer:sourceImage:destinationImage:)

Encodes a kernel into a command buffer. The ensuing operation proceeds out-of-place.

Declaration

func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationImage: MPSImage)

Parameters

  • commandBuffer:

    A valid command buffer to receive the encoded filter.

  • sourceImage:

    A valid source image.

  • destinationImage:

    A valid destination image to be overwritten by the results.

Discussion

The destinationImage object may not alias the sourceImage object.

See Also

Instance Methods