Instance Method

encode(commandBuffer:primaryTexture:secondaryTexture:destinationTexture:)

Encodes a kernel into a command buffer, out-of-place.

Declaration

func encode(commandBuffer: MTLCommandBuffer, primaryTexture: MTLTexture, secondaryTexture: MTLTexture, destinationTexture: 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.