pub fn create_debug_logger(
    entry: &Entry,
    instance: &ash::Instance,
) -> Result<(DebugUtils, DebugUtilsMessengerEXT)> {
    let debug_utils = DebugUtils::new(entry, instance);

    let create_info = vk::DebugUtilsMessengerCreateInfoEXT {
        message_severity: vk::DebugUtilsMessageSeverityFlagsEXT::VERBOSE
            | vk::DebugUtilsMessageSeverityFlagsEXT::INFO
            | vk::DebugUtilsMessageSeverityFlagsEXT::WARNING
            | vk::DebugUtilsMessageSeverityFlagsEXT::ERROR,
        message_type: vk::DebugUtilsMessageTypeFlagsEXT::GENERAL
            | vk::DebugUtilsMessageTypeFlagsEXT::VALIDATION
            | vk::DebugUtilsMessageTypeFlagsEXT::PERFORMANCE,
        pfn_user_callback: Some(debug_callback),
        ..Default::default()
    };

    let debug_messenger = unsafe {
        debug_utils.create_debug_utils_messenger(&create_info, None)?
    };

    Ok((debug_utils, debug_messenger))
}
/// Create the vulkan debug callback for validation.
Create the vulkan debug callback for validation.
Create the vulkan debug callback for validation .
pub fn create_debug_logger(
    entry: &Entry,
    instance: &ash::Instance,
) -> Result<(DebugUtils, DebugUtilsMessengerEXT)> {
    let debug_utils = DebugUtils::new(entry, instance);
    let create_info = vk::DebugUtilsMessengerCreateInfoEXT {
        message_severity: vk::DebugUtilsMessageSeverityFlagsEXT::VERBOSE
            | vk::DebugUtilsMessageSeverityFlagsEXT::INFO
            | vk::DebugUtilsMessageSeverityFlagsEXT::WARNING
            | vk::DebugUtilsMessageSeverityFlagsEXT::ERROR,
        message_type: vk::DebugUtilsMessageTypeFlagsEXT::GENERAL
            | vk::DebugUtilsMessageTypeFlagsEXT::VALIDATION
            | vk::DebugUtilsMessageTypeFlagsEXT::PERFORMANCE,
        pfn_user_callback: Some(debug_callback),
        ..Default::default()
    };
    let debug_messenger = unsafe {
        debug_utils.create_debug_utils_messenger(&create_info, None)?
    };
    Ok((debug_utils, debug_messenger))
}
pub fn create_debug_logger ( entry : & Entry , instance : & ash :: Instance , ) -> Result < ( DebugUtils , DebugUtilsMessengerEXT ) > { let debug_utils = DebugUtils :: new ( entry , instance ) ; let create_info = vk :: DebugUtilsMessengerCreateInfoEXT { message_severity : vk :: DebugUtilsMessageSeverityFlagsEXT :: VERBOSE | vk :: DebugUtilsMessageSeverityFlagsEXT :: INFO | vk :: DebugUtilsMessageSeverityFlagsEXT :: WARNING | vk :: DebugUtilsMessageSeverityFlagsEXT :: ERROR , message_type : vk :: DebugUtilsMessageTypeFlagsEXT :: GENERAL | vk :: DebugUtilsMessageTypeFlagsEXT :: VALIDATION | vk :: DebugUtilsMessageTypeFlagsEXT :: PERFORMANCE , pfn_user_callback : Some ( debug_callback ) , .. Default :: default ( ) } ; let debug_messenger = unsafe { debug_utils . create_debug_utils_messenger ( & create_info , None ) ? } ; Ok ( ( debug_utils , debug_messenger ) ) }
Create the vulkan debug callback for validation.
Create the vulkan debug callback for validation .
entry
&Entry
instance
&ash::Instance