Instance Method

encodeToCommandBuffer:sourceImage:destinationImage:

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

Declaration

- (void)encodeToCommandBuffer:(id<MTLCommandBuffer>)commandBuffer sourceImage:(MPSImage *)sourceImage destinationImage:(MPSImage *)destinationImage;

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.