Contents

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. destinationTexture may not alias primaryTexture nor secondaryTexture.

See Also

Methods