unsafe fn surface_capabilities(
        &self,
        physical_device: &vk::PhysicalDevice,
    ) -> Result<vk::SurfaceCapabilitiesKHR> {
        self.surface_loader
            .get_physical_device_surface_capabilities(
                *physical_device,
                self.surface,
            )
            .context("unable to get surface capabiliities for this device")
    }
/// Returns the set of all supported surface capabilities.
///
/// Unsafe because the device's supported extensions must be checked prior
/// to querying the surface capabilities.
Returns the set of all supported surface capabilities.
Unsafe because the device's supported extensions must be checked prior
to querying the surface capabilities.
Returns the set of all supported surface capabilities . Unsafe because the device ' s supported extensions must be checked prior to querying the surface capabilities .
unsafe fn surface_capabilities(
        &self,
        physical_device: &vk::PhysicalDevice,
    ) -> Result<vk::SurfaceCapabilitiesKHR> {
        self.surface_loader
            .get_physical_device_surface_capabilities(
                *physical_device,
                self.surface,
            )
            .context("unable to get surface capabiliities for this device")
    }
unsafe fn surface_capabilities ( & self , physical_device : & vk :: PhysicalDevice , ) -> Result < vk :: SurfaceCapabilitiesKHR > { self . surface_loader . get_physical_device_surface_capabilities ( * physical_device , self . surface , ) . context ( " " ) }
Returns the set of all supported surface capabilities.
Returns the set of all supported surface capabilities .
&self
physical_device
&vk::PhysicalDevice