Contents

present(_:)

Presents a drawable as early as possible.

Declaration

func present(_ drawable: any MTLDrawable)

Parameters

  • drawable:

    An Mtldrawable instance that contains a texture the system can show on a display.

Discussion

This convenience method calls the drawable’s present() method after the command queue schedules the command buffer for execution. The command buffer does this by adding a completion handler by calling its own addScheduledHandler(_:) method for you.

See Also

Presenting a drawable