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
encode(commandBuffer:sourceImage:)appendBatchBarrier()batchEncodingStorageSize(sourceImage:sourceStates:destinationImage:)destinationImageDescriptor(sourceImages:sourceStates:)encode(commandBuffer:sourceImage:destinationState:destinationImage:)encode(commandBuffer:sourceImage:destinationState:destinationStateIsTemporary:)encodeBatch(commandBuffer:sourceImages:)encodeBatch(commandBuffer:sourceImages:destinationImages:)encodeBatch(commandBuffer:sourceImages:destinationStates:destinationImages:)encodeBatch(commandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:)encodingStorageSize(sourceImage:sourceStates:destinationImage:)isResultStateReusedAcrossBatch()resultState(sourceImage:sourceStates:destinationImage:)resultStateBatch(sourceImage:sourceStates:destinationImage:)temporaryResultState(commandBuffer:sourceImage:sourceStates:destinationImage:)