parent
50e28c0bba
commit
44c420940d
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ VkResult VulkanExampleBase::createInstance(bool enableValidation)
|
|||
{
|
||||
this->settings.validation = enableValidation;
|
||||
|
||||
// Validation can also be forced via a define
|
||||
#if defined(_VALIDATION)
|
||||
this->settings.validation = true;
|
||||
#endif
|
||||
|
||||
VkApplicationInfo appInfo = {};
|
||||
appInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO;
|
||||
appInfo.pApplicationName = name.c_str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue