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]

Initializes a debug callback.

Panics generated by calling user_callback are ignored.

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]

A method called when the value goes out of scope. Read more