Provide a way to disable the debug callback

This commit is contained in:
David Dubois 2023-02-28 14:59:10 -08:00 committed by Charles Giessen
parent 683d014241
commit 82b7a0ed01

View File

@ -381,6 +381,8 @@ class InstanceBuilder {
// Checks if the validation layers are available and loads them if they are.
InstanceBuilder& request_validation_layers(bool enable_validation = true);
// Disables the debug messenger and clears the debug callback
InstanceBuilder& disable_debug_messenger();
// Use a default debug callback that prints to standard out.
InstanceBuilder& use_default_debug_messenger();
// Provide a user defined debug callback.