pub trait SwapchainMut: Swapchain + VkHandleMut {
// Provided method
fn acquire_next(
&mut self,
timeout: Option<u64>,
completion: CompletionHandlerMut<'_>,
) -> Result<u32> { ... }
}Provided Methods§
Sourcefn acquire_next(
&mut self,
timeout: Option<u64>,
completion: CompletionHandlerMut<'_>,
) -> Result<u32>
fn acquire_next( &mut self, timeout: Option<u64>, completion: CompletionHandlerMut<'_>, ) -> Result<u32>
Retrieve the index of the next available presentation image
§Failures
On failure, this command returns
brvk::VK_ERROR_OUT_OF_HOST_MEMORYbrvk::VK_ERROR_OUT_OF_DEVICE_MEMORYbrvk::VK_ERROR_DEVICE_LOSTbrvk::VK_ERROR_OUT_OF_DATE_KHRbrvk::VK_ERROR_SURFACE_LOST_KHR