Swapchain.acquireNextImage

Acquire the next image in the swapchain. This function may block until the next image is available.

interface Swapchain
acquireNextImage
(,
Duration timeout = dur!"seconds"(-1)
)

Parameters

semaphore Semaphore

A semaphore that is signaled when the image is ready to be written to. Use it to synchronize with the first submission that will write to the image.

timeout Duration

The maximum time to wait until the call returns. Use negative timeout to specify infinite waiting time. Use null timeout to specify no wait at all.

Return Value

ImageAcquisition representing the result of the operation.

See Also

ImageAcquisition

Meta