pub fn new(instance: &VkInstance, config: &DebugUtilsConfig) -> VkResult<VkDebugUtils> {

        let loader = ash::extensions::ext::DebugUtils::new(&instance.entry, &instance.handle);

        let messenger_ci = VkDebugUtils::create_info(config);

        let utils_messenger = unsafe {
            loader.create_debug_utils_messenger(&messenger_ci, None)
                .or(Err(VkError::create("Debug Utils Callback")))?
        };

        let utils = VkDebugUtils { loader, utils_messenger };
        Ok(utils)
    }
/// Initialize debug report extension loader and `vk::DebugUtilsMessengerExt` object.
Initialize debug report extension loader and `vk::DebugUtilsMessengerExt` object.
Initialize debug report extension loader and ` vk :: DebugUtilsMessengerExt ` object .
pub fn new(instance: &VkInstance, config: &DebugUtilsConfig) -> VkResult<VkDebugUtils> {
        let loader = ash::extensions::ext::DebugUtils::new(&instance.entry, &instance.handle);
        let messenger_ci = VkDebugUtils::create_info(config);
        let utils_messenger = unsafe {
            loader.create_debug_utils_messenger(&messenger_ci, None)
                .or(Err(VkError::create("Debug Utils Callback")))?
        };
        let utils = VkDebugUtils { loader, utils_messenger };
        Ok(utils)
    }
pub fn new ( instance : & VkInstance , config : & DebugUtilsConfig ) -> VkResult < VkDebugUtils > { let loader = ash :: extensions :: ext :: DebugUtils :: new ( & instance . entry , & instance . handle ) ; let messenger_ci = VkDebugUtils :: create_info ( config ) ; let utils_messenger = unsafe { loader . create_debug_utils_messenger ( & messenger_ci , None ) . or ( Err ( VkError :: create ( " " ) ) ) ? } ; let utils = VkDebugUtils { loader , utils_messenger } ; Ok ( utils ) }
Initialize debug report extension loader and `vk::DebugUtilsMessengerExt` object.
Initialize debug report extension loader and ` vk :: DebugUtilsMessengerExt ` object .
instance
&VkInstance
config
&DebugUtilsConfig
instance
&VkInstance
config
&DebugUtilsConfig