Enables VK_LAYER_KHRONOS_validation on debug build (#951)

This commit is contained in:
Putta Khunchalee 2024-08-26 03:31:51 +07:00 committed by GitHub
parent 5ec2e00bf4
commit 583b98ec50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,