Allow base class instance Vulkan version override

This commit is contained in:
saschawillems 2018-06-01 18:42:18 +02:00
parent aa380791c8
commit fa5d86e42b
2 changed files with 2 additions and 1 deletions

View file

@ -23,7 +23,7 @@ VkResult VulkanExampleBase::createInstance(bool enableValidation)
appInfo.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO;
appInfo.pApplicationName = name.c_str();
appInfo.pEngineName = name.c_str();
appInfo.apiVersion = VK_API_VERSION_1_0;
appInfo.apiVersion = apiVersion;
std::vector<const char*> instanceExtensions = { VK_KHR_SURFACE_EXTENSION_NAME };

View file

@ -185,6 +185,7 @@ public:
std::string title = "Vulkan Example";
std::string name = "vulkanExample";
uint32_t apiVersion = VK_API_VERSION_1_0;
struct
{