Swapchain.acquireNextImage

use negative timeout to specify no timeout at all

interface Swapchain
uint
acquireNextImage

Parameters

timeout Duration

the maximum time to wait until the call returns

semaphore Semaphore

the semaphore

suboptimal bool

a flag that implementation may set if the swapchain need to be recreated

Return Value

Type: uint

the index of an available image or uint.max if timeout expired before any image was returned to the application

Meta