pub enum DebugMessenger {
Default,
Custom {
callback: PFN_vkDebugUtilsMessengerCallbackEXT,
user_data_pointer: *mut c_void,
},
Disable,
}Expand description
Enable or disable the debug messenger, optionally providing a custom callback.
Variants§
Default
Enables the debug messenger with the default_debug_callback
callback.
Custom
Enables the debug messenger with a custom, user-provided callback.
Fields
§
callback: PFN_vkDebugUtilsMessengerCallbackEXTThe user provided callback function. Feel free to take a look at the
default_debug_callback when implementing your own.
Disable
Disables the debug messenger.
Trait Implementations§
Source§impl Clone for DebugMessenger
impl Clone for DebugMessenger
Source§fn clone(&self) -> DebugMessenger
fn clone(&self) -> DebugMessenger
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DebugMessenger
Auto Trait Implementations§
impl Freeze for DebugMessenger
impl RefUnwindSafe for DebugMessenger
impl !Send for DebugMessenger
impl !Sync for DebugMessenger
impl Unpin for DebugMessenger
impl UnwindSafe for DebugMessenger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more