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,
        device_group_present_capabilities: &mut DeviceGroupPresentCapabilitiesKHR
    ) -> VkResult<()> { ... }
    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

Provided Associated Constants§

source

const METADATA: Extension = KHR_SWAPCHAIN_EXTENSION

The metadata for this extension.

Provided Methods§

source

unsafe fn acquire_next_image2_khr( &self, acquire_info: &AcquireNextImageInfoKHR ) -> VkSuccessResult<u32>

source

unsafe fn acquire_next_image_khr( &self, swapchain: SwapchainKHR, timeout: u64, semaphore: Semaphore, fence: Fence ) -> VkSuccessResult<u32>

source

unsafe fn create_swapchain_khr( &self, create_info: &SwapchainCreateInfoKHR, allocator: Option<&AllocationCallbacks> ) -> VkResult<SwapchainKHR>

source

unsafe fn destroy_swapchain_khr( &self, swapchain: SwapchainKHR, allocator: Option<&AllocationCallbacks> )

source

unsafe fn get_device_group_present_capabilities_khr( &self, device_group_present_capabilities: &mut DeviceGroupPresentCapabilitiesKHR ) -> VkResult<()>

source

unsafe fn get_device_group_surface_present_modes_khr( &self, surface: SurfaceKHR ) -> VkResult<DeviceGroupPresentModeFlagsKHR>

source

unsafe fn get_physical_device_present_rectangles_khr( &self, physical_device: PhysicalDevice, surface: SurfaceKHR ) -> VkResult<Vec<Rect2D>>

source

unsafe fn get_swapchain_images_khr( &self, swapchain: SwapchainKHR ) -> VkResult<Vec<Image>>

source

unsafe fn queue_present_khr( &self, queue: Queue, present_info: &PresentInfoKHR ) -> VkResult<SuccessCode>

Object Safety§

This trait is not object safe.

Implementors§