unsafe fn supported_presentation_modes(
        &self,
        physical_device: &vk::PhysicalDevice,
    ) -> Vec<vk::PresentModeKHR> {
        self.surface_loader
            .get_physical_device_surface_present_modes(
                *physical_device,
                self.surface,
            )
            .unwrap_or_else(|_| vec![])
    }
/// Returns the set of all supported presentation modes for this device.
///
/// Unsafe because the device's supported extensions must be checked prior
/// to querying the presentation modes.
Returns the set of all supported presentation modes for this device.
Unsafe because the device's supported extensions must be checked prior
to querying the presentation modes.
Returns the set of all supported presentation modes for this device . Unsafe because the device ' s supported extensions must be checked prior to querying the presentation modes .
unsafe fn supported_presentation_modes(
        &self,
        physical_device: &vk::PhysicalDevice,
    ) -> Vec<vk::PresentModeKHR> {
        self.surface_loader
            .get_physical_device_surface_present_modes(
                *physical_device,
                self.surface,
            )
            .unwrap_or_else(|_| vec![])
    }
unsafe fn supported_presentation_modes ( & self , physical_device : & vk :: PhysicalDevice , ) -> Vec < vk :: PresentModeKHR > { self . surface_loader . get_physical_device_surface_present_modes ( * physical_device , self . surface , ) . unwrap_or_else ( | _ | vec ! [ ] ) }
Returns the set of all supported presentation modes for this device.
Returns the set of all supported presentation modes for this device .
&self
physical_device
&vk::PhysicalDevice