Skip to content

Commit 5e62b0c

Browse files
committed
CVulkanConnection create instance with highest version
1 parent f66b4e2 commit 5e62b0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/nbl/video/CVulkanConnection.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,15 @@ namespace nbl::video
178178

179179
VkInstance vk_instance;
180180
{
181+
uint32_t instanceApiVersion = VK_MAKE_API_VERSION(0, 1, 1, 0);
182+
vkEnumerateInstanceVersion(&instanceApiVersion);
183+
181184
VkApplicationInfo applicationInfo = { VK_STRUCTURE_TYPE_APPLICATION_INFO };
182185
applicationInfo.pNext = nullptr; // pNext must be NULL
183186
applicationInfo.pApplicationName = appName;
184187
applicationInfo.applicationVersion = appVer;
185188
applicationInfo.pEngineName = "Nabla";
186-
applicationInfo.apiVersion = VK_MAKE_API_VERSION(0, 1, 1, 0);
189+
applicationInfo.apiVersion = instanceApiVersion;
187190
applicationInfo.engineVersion = NABLA_VERSION_INTEGER;
188191

189192
VkInstanceCreateInfo createInfo = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO };

0 commit comments

Comments
 (0)