Skip to main content

PFN_vkAcquireNextImageKHR

Type Alias PFN_vkAcquireNextImageKHR 

Source
pub type PFN_vkAcquireNextImageKHR = Option<unsafe extern "system" fn(device: Device, swapchain: SwapchainKHR, timeout: u64, semaphore: Semaphore, fence: Fence, p_image_index: *mut u32) -> Result>;
Expand description

vkAcquireNextImageKHR Provided by VK_KHR_swapchain.

§Success Codes

  • VK_SUCCESS
  • VK_TIMEOUT
  • VK_NOT_READY
  • VK_SUBOPTIMAL_KHR

§Error Codes

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_DEVICE_LOST
  • VK_ERROR_OUT_OF_DATE_KHR
  • VK_ERROR_SURFACE_LOST_KHR
  • VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT
  • VK_ERROR_UNKNOWN
  • VK_ERROR_VALIDATION_FAILED

§Thread Safety

  • swapchain must be externally synchronized
  • semaphore must be externally synchronized
  • fence must be externally synchronized

Aliased Type§

pub enum PFN_vkAcquireNextImageKHR {
    None,
    Some(unsafe extern "system" fn(Device, SwapchainKHR, u64, Semaphore, Fence, *mut u32) -> Result),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "system" fn(Device, SwapchainKHR, u64, Semaphore, Fence, *mut u32) -> Result)

Some value of type T.