encodePresent()
Encodes a notification event to the specified command buffer to present the drawable’s content onscreen.
Declaration
func encodePresent()Discussion
Call this function as the last step before committing the specified command buffer. Specifically, call it after you finish encoding all the work required to render the frame, and immediately before you call the command buffer’s commit() method. The function adds a presentation event to the buffer that causes the compositor to display your frame.