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