Instance Method

present(_:)

Registers a drawable presentation to occur as soon as possible.

Required.

Declaration

func present(_ drawable: MTLDrawable)

Parameters

drawable

The drawable that you want to present.

Discussion

This is a convenience method that calls the drawable's present() method from a handler scheduled using the command buffer's addScheduledHandler(_:) method.

See Also

Presenting a Drawable

func present(MTLDrawable, afterMinimumDuration: CFTimeInterval)

Registers a drawable presentation to occur after waiting for the previous drawable to meet the minimum display time.

Required.

func present(MTLDrawable, atTime: CFTimeInterval)

Registers a drawable presentation to occur at a specific host time.

Required.