From 583b98ec508ee4de59ebd8ade8107121b7ea80d0 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Mon, 26 Aug 2024 03:31:51 +0700 Subject: [PATCH] Enables VK_LAYER_KHRONOS_validation on debug build (#951) --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 27ea7a06..f4adf45d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -84,6 +84,10 @@ int main(int argc, char *argv[]) vulkan.setApiVersion(QVersionNumber(1, 3)); +#if !defined(NDEBUG) + vulkan.setLayers({"VK_LAYER_KHRONOS_validation"}); +#endif + if (!vulkan.create()) { QMessageBox::critical( nullptr,