encode(commandBuffer:primaryTexture:secondaryTexture:destinationTexture:)
Encodes a kernel into a command buffer, out-of-place.
Declaration
func encode(commandBuffer: any MTLCommandBuffer, primaryTexture: any MTLTexture, secondaryTexture: any MTLTexture, destinationTexture: any MTLTexture)Parameters
- commandBuffer:
A valid command buffer to receive the encoded kernel.
- primaryTexture:
A valid texture containing the primary source image.
- secondaryTexture:
A valid texture containing the secondary source image.
- destinationTexture:
A valid texture to be overwritten by the result image.
destinationTexturemay not aliasprimaryTexturenorsecondaryTexture.
See Also
Methods
encode(commandBuffer:primaryTexture:inPlaceSecondaryTexture:fallbackCopyAllocator:)encode(commandBuffer:inPlacePrimaryTexture:secondaryTexture:fallbackCopyAllocator:)encode(commandBuffer:primaryImage:secondaryImage:destinationImage:)primarySourceRegion(forDestinationSize:)secondarySourceRegion(forDestinationSize:)