From 82b7a0ed018c3d286b5ae793747c580111b43122 Mon Sep 17 00:00:00 2001 From: David Dubois Date: Tue, 28 Feb 2023 14:59:10 -0800 Subject: [PATCH] Provide a way to disable the debug callback --- src/VkBootstrap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VkBootstrap.h b/src/VkBootstrap.h index ef77c2a..4a1620d 100644 --- a/src/VkBootstrap.h +++ b/src/VkBootstrap.h @@ -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.