Contents

addCompletedHandler(_:)

Adds a closure that Metal calls immediately after the GPU finishes executing the commands in the input/output command buffer.

Declaration

func addCompletedHandler(_ block: @escaping  MTLIOCommandBufferHandler)

Parameters

  • block:

    A Swift closure or an Objective-C block with your code.

See Also

Adding final commands