unsafe extern "system" fn vulkan_debug_utils_callback(
	    message_severity: DebugUtilsMessageSeverityFlagsEXT,
	    message_type: DebugUtilsMessageTypeFlagsEXT,
	    p_callback_data: *const DebugUtilsMessengerCallbackDataEXT,
	    _p_user_data: *mut c_void,
	) -> Bool32 {
	    let severity = match message_severity {
	        DebugUtilsMessageSeverityFlagsEXT::VERBOSE => "[Verbose]",
	        DebugUtilsMessageSeverityFlagsEXT::WARNING => "[Warning]",
	        DebugUtilsMessageSeverityFlagsEXT::ERROR => "[Error]",
	        DebugUtilsMessageSeverityFlagsEXT::INFO => "[Info]",
	        _ => "[Unknown]",
	    };

	    let types = match message_type {
	        DebugUtilsMessageTypeFlagsEXT::GENERAL => "[General]",
	        DebugUtilsMessageTypeFlagsEXT::PERFORMANCE => "[Performance]",
	        DebugUtilsMessageTypeFlagsEXT::VALIDATION => "[Validation]",
	        _ => "[Unknown]",
	    };

	    let message = CStr::from_ptr((*p_callback_data).p_message);

	    println!("[Debug]{}{}{:?}", severity, types, message);

	    FALSE
	}
// The callback function used in Debug Utils.
The callback function used in Debug Utils.
The callback function used in Debug Utils .
unsafe extern "system" fn vulkan_debug_utils_callback(
	    message_severity: DebugUtilsMessageSeverityFlagsEXT,
	    message_type: DebugUtilsMessageTypeFlagsEXT,
	    p_callback_data: *const DebugUtilsMessengerCallbackDataEXT,
	    _p_user_data: *mut c_void,
	) -> Bool32 {
	    let severity = match message_severity {
	        DebugUtilsMessageSeverityFlagsEXT::VERBOSE => "[Verbose]",
	        DebugUtilsMessageSeverityFlagsEXT::WARNING => "[Warning]",
	        DebugUtilsMessageSeverityFlagsEXT::ERROR => "[Error]",
	        DebugUtilsMessageSeverityFlagsEXT::INFO => "[Info]",
	        _ => "[Unknown]",
	    };
	    let types = match message_type {
	        DebugUtilsMessageTypeFlagsEXT::GENERAL => "[General]",
	        DebugUtilsMessageTypeFlagsEXT::PERFORMANCE => "[Performance]",
	        DebugUtilsMessageTypeFlagsEXT::VALIDATION => "[Validation]",
	        _ => "[Unknown]",
	    };
	    let message = CStr::from_ptr((*p_callback_data).p_message);
	    println!("[Debug]{}{}{:?}", severity, types, message);
	    FALSE
	}
unsafe extern " " fn vulkan_debug_utils_callback ( message_severity : DebugUtilsMessageSeverityFlagsEXT , message_type : DebugUtilsMessageTypeFlagsEXT , p_callback_data : * const DebugUtilsMessengerCallbackDataEXT , _p_user_data : * mut c_void , ) -> Bool32 { let severity = match message_severity { DebugUtilsMessageSeverityFlagsEXT :: VERBOSE => " " , DebugUtilsMessageSeverityFlagsEXT :: WARNING => " " , DebugUtilsMessageSeverityFlagsEXT :: ERROR => " " , DebugUtilsMessageSeverityFlagsEXT :: INFO => " " , _ => " " , } ; let types = match message_type { DebugUtilsMessageTypeFlagsEXT :: GENERAL => " " , DebugUtilsMessageTypeFlagsEXT :: PERFORMANCE => " " , DebugUtilsMessageTypeFlagsEXT :: VALIDATION => " " , _ => " " , } ; let message = CStr :: from_ptr ( ( * p_callback_data ) . p_message ) ; println ! ( " " severity types message ) ; FALSE }
The callback function used in Debug Utils.
The callback function used in Debug Utils .
message_severity
DebugUtilsMessageSeverityFlagsEXT
message_type
DebugUtilsMessageTypeFlagsEXT
p_callback_data
*const DebugUtilsMessengerCallbackDataEXT
_p_user_data
*mut c_void