mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 15:24:34 +00:00
Provide a way to disable the debug callback
This commit is contained in:
parent
2d7315eadf
commit
683d014241
@ -794,6 +794,13 @@ InstanceBuilder& InstanceBuilder::request_validation_layers(bool enable_validati
|
||||
info.request_validation_layers = enable_validation;
|
||||
return *this;
|
||||
}
|
||||
|
||||
InstanceBuilder & InstanceBuilder::disable_debug_messenger() {
|
||||
info.use_debug_messenger = false;
|
||||
info.debug_callback = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
InstanceBuilder& InstanceBuilder::use_default_debug_messenger() {
|
||||
info.use_debug_messenger = true;
|
||||
info.debug_callback = default_debug_callback;
|
||||
|
Loading…
Reference in New Issue
Block a user