Struct vulkano::instance::debug::DebugCallback [] [src]

#[must_use = "The DebugCallback object must be kept alive for as long as you want your callback to be called"]
pub struct DebugCallback { /* fields omitted */ }

Registration of a callback called by validation layers.

The callback can be called as long as this object is alive.

Methods

impl DebugCallback
[src]

[src]

Initializes a debug callback.

Panics generated by calling user_callback are ignored.

[src]

Initializes a debug callback with errors and warnings.

Shortcut for new(instance, MessageTypes::errors_and_warnings(), user_callback).

Trait Implementations

impl Drop for DebugCallback
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for DebugCallback

impl !Sync for DebugCallback