Function Swapchain.acquireNextImage

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

abstract ImageAcquisition acquireNextImage (
  Semaphore semaphore,
  core.time.Duration timeout = dur(-1L)
);

Parameters

NameDescription
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 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.

Returns

ImageAcquisition representing the result of the operation.

See Also

ImageAcquisition