Contents

process(with:parameters:)

Asynchronously performs the video effect specified in the start session specifically for Metal.

Declaration

func process(with commandBuffer: any MTLCommandBuffer, parameters: any VTFrameProcessorParameters)

Parameters

  • commandBuffer:

    An existing Metal command buffer where the frame processing will be inserted.

  • parameters:

    A VTFrameProcessorParameters based object to specify additional frame based parameters to be used during processing. It needs to match the configuration type used during start session.

Discussion

This function allows you to add the effect to an existing Metal command buffer. This can be used by clients that have an existing Metal pipeline and want to add this effect to it.

See Also

Processing frames