mirror of
https://github.com/obhq/obliteration.git
synced 2024-11-30 06:30:41 +00:00
Enables VK_LAYER_KHRONOS_validation on debug build (#951)
This commit is contained in:
parent
5ec2e00bf4
commit
583b98ec50
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user