fn score_device(instance: &VulkanInstance, device: VkPhysicalDevice) -> u32 {
    let mut score: u32 = 0;
    let properties = instance.get_physical_device_properties(device);

    if properties.device_type == PhysicalDeviceType::IntegratedGpu {
        score += 1000
    }

    score
}
/// Calculate score for a physical device.
Calculate score for a physical device.
Calculate score for a physical device .
fn score_device(instance: &VulkanInstance, device: VkPhysicalDevice) -> u32 {
    let mut score: u32 = 0;
    let properties = instance.get_physical_device_properties(device);
    if properties.device_type == PhysicalDeviceType::IntegratedGpu {
        score += 1000
    }
    score
}
fn score_device ( instance : & VulkanInstance , device : VkPhysicalDevice ) -> u32 { let mut score : u32 = 0 ; let properties = instance . get_physical_device_properties ( device ) ; if properties . device_type == PhysicalDeviceType :: IntegratedGpu { score += 1000 } score }
Calculate score for a physical device.
Calculate score for a physical device .
instance
&VulkanInstance
device
VkPhysicalDevice
instance
&VulkanInstance
device
VkPhysicalDevice