pub fn query_present_modes(&self, physical_device: vk::PhysicalDevice) -> VkResult<Vec<vk::PresentModeKHR>> {

        unsafe {
            self.loader.get_physical_device_surface_present_modes(physical_device, self.handle)
                .or(Err(VkError::query("Surface Present Modes")))
        }
    }
/// Query the supported presentation modes for a surface.
Query the supported presentation modes for a surface.
Query the supported presentation modes for a surface .
pub fn query_present_modes(&self, physical_device: vk::PhysicalDevice) -> VkResult<Vec<vk::PresentModeKHR>> {
        unsafe {
            self.loader.get_physical_device_surface_present_modes(physical_device, self.handle)
                .or(Err(VkError::query("Surface Present Modes")))
        }
    }
pub fn query_present_modes ( & self , physical_device : vk :: PhysicalDevice ) -> VkResult < Vec < vk :: PresentModeKHR > > { unsafe { self . loader . get_physical_device_surface_present_modes ( physical_device , self . handle ) . or ( Err ( VkError :: query ( " " ) ) ) } }
Query the supported presentation modes for a surface.
Query the supported presentation modes for a surface .
&self
physical_device
vk::PhysicalDevice
&self
physical_device
vk::PhysicalDevice