You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now run the program to make sure that the instance is created successfully.
111
111
112
+
## Encountered VK_ERROR_INCOMPATIBLE_DRIVER:
113
+
If using MacOS with the latest MoltenVK sdk, you may get `VK_ERROR_INCOMPATIBLE_DRIVER`
114
+
returned from `vkCreateInstance`. Accroding to the [Getting Start Notes](https://vulkan.lunarg.com/doc/sdk/1.3.216.0/mac/getting_started.html). Beginning with the 1.3.216 Vulkan SDK, the `VK_KHR_PORTABILITY_subset`
115
+
extension is mandatory.
116
+
117
+
To get over this error, first add the `VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR` bit
118
+
to `VkInstanceCreateInfo` struct's flags, then add `VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME`
119
+
to instance enabled extension list.
120
+
121
+
Typically the code could be like this:
122
+
```c++
123
+
...
124
+
125
+
std::vector<constchar*> requiredExtensions;
126
+
127
+
for(uint32_t i = 0; i < glfwExtensionCount; i++) {
0 commit comments