pub trait KhrSwapchainExtension: DeviceV1_0 {
const METADATA: Extension = KHR_SWAPCHAIN_EXTENSION;
// Provided methods
unsafe fn acquire_next_image2_khr(
&self,
acquire_info: &AcquireNextImageInfoKHR
) -> VkSuccessResult<u32> { ... }
unsafe fn acquire_next_image_khr(
&self,
swapchain: SwapchainKHR,
timeout: u64,
semaphore: Semaphore,
fence: Fence
) -> VkSuccessResult<u32> { ... }
unsafe fn create_swapchain_khr(
&self,
create_info: &SwapchainCreateInfoKHR,
allocator: Option<&AllocationCallbacks>
) -> VkResult<SwapchainKHR> { ... }
unsafe fn destroy_swapchain_khr(
&self,
swapchain: SwapchainKHR,
allocator: Option<&AllocationCallbacks>
) { ... }
unsafe fn get_device_group_present_capabilities_khr(
&self
) -> VkResult<DeviceGroupPresentCapabilitiesKHR> { ... }
unsafe fn get_device_group_surface_present_modes_khr(
&self,
surface: SurfaceKHR
) -> VkResult<DeviceGroupPresentModeFlagsKHR> { ... }
unsafe fn get_physical_device_present_rectangles_khr(
&self,
physical_device: PhysicalDevice,
surface: SurfaceKHR
) -> VkResult<Vec<Rect2D>> { ... }
unsafe fn get_swapchain_images_khr(
&self,
swapchain: SwapchainKHR
) -> VkResult<Vec<Image>> { ... }
unsafe fn queue_present_khr(
&self,
queue: Queue,
present_info: &PresentInfoKHR
) -> VkResult<SuccessCode> { ... }
}
Expand description
The metadata for this extension.