Vulkano: Examples on mac panic with 'failed to create Vulkan instance: IncompatibleDriver'

Created on 17 Aug 2018  路  6Comments  路  Source: vulkano-rs/vulkano

Should the examples in the master branch work on mac? I've tried vulkan versions 1.1.82.0, 1.1.77.0, and 1.0.69.0, but I don't notice any difference in the error.

Am I missing something?

image

Most helpful comment

Looks like I was missing a few environment variables, having libvulkan.dylib locatable on DYLD_LIBRARY_PATH was not enough, also needed VK_ICD_FILENAMES and VK_LAYER_PATH setup as shown here: https://github.com/bwasty/vulkan-tutorial-rs/blob/master/mac-env.sh (and explained more at https://github.com/bwasty/vulkan-tutorial-rs#development-environment)

Works great now :)

All 6 comments

Have you installed the vulkan sdk for mac as per the readme?
Sadly I don't have a mac, so you might need to do some digging yourself.

Hi there, I get the same error with Vulkano 0.10.0 on mac. Used to work fine with version 0.9.0 when linking with the MoltenVK framework was default (before #948). I have version 1.1.82.0 of the LunarG Vulkan SDK installed.

@nlordell any ideas?

Looks like I was missing a few environment variables, having libvulkan.dylib locatable on DYLD_LIBRARY_PATH was not enough, also needed VK_ICD_FILENAMES and VK_LAYER_PATH setup as shown here: https://github.com/bwasty/vulkan-tutorial-rs/blob/master/mac-env.sh (and explained more at https://github.com/bwasty/vulkan-tutorial-rs#development-environment)

Works great now :)

I would love for this sort of thing to be better documented, a PR would be great!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rukai picture rukai  路  4Comments

Eliah-Lakhin picture Eliah-Lakhin  路  6Comments

the10thWiz picture the10thWiz  路  4Comments

tomaka picture tomaka  路  8Comments

croraf picture croraf  路  5Comments