fn enabled_layer_names<'ln>(loader: &Loader) -> SmallVec<[&'ln str; 16]> {
    if ENABLE_VALIDATION_LAYERS {
        if loader.verify_layer_support(VALIDATION_LAYER_NAMES).unwrap() {
            VALIDATION_LAYER_NAMES.iter().map(|&lyr_name| lyr_name).collect()
        } else {
            println!("WARNING: One or more validation layers cannot be loaded. Debug report \
            generation will be unavailable. Please install the LunarG Vulkan SDK from \
            `https://vulkan.lunarg.com/` to enable validation layers.");
            SmallVec::new()
        }
    } else {
        SmallVec::new()
    }
}
/// Returns the list of layer names to be enabled.
///
/// Enable additional layers by adding names to the returned list.
Returns the list of layer names to be enabled.
Enable additional layers by adding names to the returned list.
Returns the list of layer names to be enabled . Enable additional layers by adding names to the returned list .
fn enabled_layer_names<'ln>(loader: &Loader) -> SmallVec<[&'ln str; 16]> {
    if ENABLE_VALIDATION_LAYERS {
        if loader.verify_layer_support(VALIDATION_LAYER_NAMES).unwrap() {
            VALIDATION_LAYER_NAMES.iter().map(|&lyr_name| lyr_name).collect()
        } else {
            println!("WARNING: One or more validation layers cannot be loaded. Debug report \
            generation will be unavailable. Please install the LunarG Vulkan SDK from \
            `https://vulkan.lunarg.com/` to enable validation layers.");
            SmallVec::new()
        }
    } else {
        SmallVec::new()
    }
}
fn enabled_layer_names < ' ln > ( loader : & Loader ) -> SmallVec < [ & ' ln str ; 16 ] > { if ENABLE_VALIDATION_LAYERS { if loader . verify_layer_support ( VALIDATION_LAYER_NAMES ) . unwrap ( ) { VALIDATION_LAYER_NAMES . iter ( ) . map ( | & lyr_name | lyr_name ) . collect ( ) } else { println ! ( " \
 \
 " ) ; SmallVec :: new ( ) } } else { SmallVec :: new ( ) } }
Returns the list of layer names to be enabled.
Returns the list of layer names to be enabled .
loader
&Loader
loader
&Loader