pub fn query_capabilities(&self, physical_device: vk::PhysicalDevice) -> VkResult<vk::SurfaceCapabilitiesKHR> {

        unsafe {
            self.loader.get_physical_device_surface_capabilities(physical_device, self.handle)
                .or(Err(VkError::query("Surface Capabilities")))
        }
    }
/// Query the basic capabilities of a surface.
///
/// capabilities usually needs in swapchain creation.
Query the basic capabilities of a surface.
capabilities usually needs in swapchain creation.
Query the basic capabilities of a surface . capabilities usually needs in swapchain creation .
pub fn query_capabilities(&self, physical_device: vk::PhysicalDevice) -> VkResult<vk::SurfaceCapabilitiesKHR> {
        unsafe {
            self.loader.get_physical_device_surface_capabilities(physical_device, self.handle)
                .or(Err(VkError::query("Surface Capabilities")))
        }
    }
pub fn query_capabilities ( & self , physical_device : vk :: PhysicalDevice ) -> VkResult < vk :: SurfaceCapabilitiesKHR > { unsafe { self . loader . get_physical_device_surface_capabilities ( physical_device , self . handle ) . or ( Err ( VkError :: query ( " " ) ) ) } }
Query the basic capabilities of a surface.
Query the basic capabilities of a surface .
&self
physical_device
vk::PhysicalDevice
&self
physical_device
vk::PhysicalDevice