Allow base class instance Vulkan version override
This commit is contained in:
parent
aa380791c8
commit
fa5d86e42b
2 changed files with 2 additions and 1 deletions
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ public:
|
|||
|
||||
std::string title = "Vulkan Example";
|
||||
std::string name = "vulkanExample";
|
||||
uint32_t apiVersion = VK_API_VERSION_1_0;
|
||||
|
||||
struct
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue