logo
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

Fields

callback: PFN_vkDebugUtilsMessengerCallbackEXT

The user provided callback function. Feel free to take a look at the default_debug_callback when implementing your own.

user_data_pointer: *mut c_void

A user data pointer passed to the debug callback.

Enables the debug messenger with a custom, user-provided callback.

Disable

Disables the debug messenger.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.