fn init_instance() -> VdResult<Instance> {
    let app_name = CString::new("Hello Rustaceans!")?;
    let eng_name = CString::new("Engine")?;

    let app_info = ApplicationInfo::builder()
        .application_name(&app_name)
        .application_version((1, 0, 0))
        .engine_name(&eng_name)
        .engine_version((1, 0, 0))
        .api_version((1, 0, 0))
        .build();

    let loader = Loader::new()?;

    Instance::builder()
        .application_info(&app_info)
        .enabled_layer_names(enabled_layer_names(&loader).as_slice())
        .enabled_extensions(&loader.enumerate_instance_extension_properties()?)
        .print_debug_report(ENABLE_VALIDATION_LAYERS)
        .build(loader)
}
/// Initializes and returns a new loader and instance.
///
/// If `ENABLE_VALIDATION_LAYERS` is `true`, validation layers will be loaded (if available)
/// and debug reports will print to stdout. If the LunarG SDK is not installed
/// on your system, a warning will be printed to that effect.
Initializes and returns a new loader and instance.
If `ENABLE_VALIDATION_LAYERS` is `true`, validation layers will be loaded (if available)
and debug reports will print to stdout. If the LunarG SDK is not installed
on your system, a warning will be printed to that effect.
Initializes and returns a new loader and instance . If ` ENABLE_VALIDATION_LAYERS ` is ` true ` validation layers will be loaded ( if available ) and debug reports will print to stdout . If the LunarG SDK is not installed on your system a warning will be printed to that effect .
fn init_instance() -> VdResult<Instance> {
    let app_name = CString::new("Hello Rustaceans!")?;
    let eng_name = CString::new("Engine")?;
    let app_info = ApplicationInfo::builder()
        .application_name(&app_name)
        .application_version((1, 0, 0))
        .engine_name(&eng_name)
        .engine_version((1, 0, 0))
        .api_version((1, 0, 0))
        .build();
    let loader = Loader::new()?;
    Instance::builder()
        .application_info(&app_info)
        .enabled_layer_names(enabled_layer_names(&loader).as_slice())
        .enabled_extensions(&loader.enumerate_instance_extension_properties()?)
        .print_debug_report(ENABLE_VALIDATION_LAYERS)
        .build(loader)
}
fn init_instance ( ) -> VdResult < Instance > { let app_name = CString :: new ( " " ) ? ; let eng_name = CString :: new ( " " ) ? ; let app_info = ApplicationInfo :: builder ( ) . application_name ( & app_name ) . application_version ( ( 1 , 0 , 0 ) ) . engine_name ( & eng_name ) . engine_version ( ( 1 , 0 , 0 ) ) . api_version ( ( 1 , 0 , 0 ) ) . build ( ) ; let loader = Loader :: new ( ) ? ; Instance :: builder ( ) . application_info ( & app_info ) . enabled_layer_names ( enabled_layer_names ( & loader ) . as_slice ( ) ) . enabled_extensions ( & loader . enumerate_instance_extension_properties ( ) ? ) . print_debug_report ( ENABLE_VALIDATION_LAYERS ) . build ( loader ) }
Initializes and returns a new loader and instance.
Initializes and returns a new loader and instance .