Skip to content

Need to set additional flags and extensions for newer versions of Vulkan SDK on Mac #70

@annethereshewent

Description

@annethereshewent

Hello, I found an issue on Mac with a fairly simple fix in the source code, so it turns out that for newer versions of Vulkan SDK, there are some additional flags that need to be set for Vulkan to work on Mac. if you don't, it will throw a VK_ERROR_INCOMPATIBLE_DRIVER when creating an instance. Per https://stackoverflow.com/questions/72789012/why-does-vkcreateinstance-return-vk-error-incompatible-driver-on-macos-despite, the fix is quite simple:

  • Enable the VK_KHR_portability_enumeration instance extension
  • Add (or set) the VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR flag for your instance create info
  • (optional?) Enable the VK_KHR_portability_subset device extension

I only had to do the first two to get things to work properly but it might be worth it to do all three.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions