Instance Method

presentDrawable:

Registers a drawable presentation to occur as soon as possible.

Required.

Declaration

- (void)presentDrawable:(id<MTLDrawable>)drawable;

Parameters

drawable

The drawable that you want to present.

Discussion

This is a convenience method that calls the drawable’s present method after the command queue schedules the command buffer for execution. You can’t call this method after you commit the command buffer.

See Also

Presenting a Drawable

- presentDrawable:afterMinimumDuration:

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

Required.

- presentDrawable:atTime:

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

Required.