Module vulkano::instance::debug [] [src]

Debug callback called by validation layers.

When working on an application, it is recommended to register a debug callback. This callback will be called by validation layers whenever necessary to warn you about invalid API usages or performance problems.

Note that the vulkano library can also emit messages to warn you about performance issues.

Example

use vulkano::instance::debug::DebugCallback;
 
let _callback = DebugCallback::errors_and_warnings(&instance, |msg| {
    println!("Debug callback: {:?}", msg.description);
}).ok();

Structs

DebugCallback

Registration of a callback called by validation layers.

Message

A message received by the callback.

MessageTypes

Type of message.

Enums

DebugCallbackCreationError

Error that can happen when creating a debug callback.