Gfx: Cannot run quad example on macOS, it says "You need to enable the native API feature (vulkan/metal) in order to test the LL"

Created on 18 May 2019  路  2Comments  路  Source: gfx-rs/gfx

Short info header:

I have installed XCode and try to run
cargo run --bin quad --features metal

However it always says

You need to enable the native API feature (vulkan/metal) in order to test the LL

Most helpful comment

Hi @zheli! This issue could be caused by running cargo run --bin quad --features metal from the gfx directory instead of the gfx/examples directory.

Is your working directory set to examples? For example, you should cd examples first as mentioned in the examples readme.

We could probably update the warning message to help with this in the future, if you'd like to send a pull request :)

All 2 comments

Hi @zheli! This issue could be caused by running cargo run --bin quad --features metal from the gfx directory instead of the gfx/examples directory.

Is your working directory set to examples? For example, you should cd examples first as mentioned in the examples readme.

We could probably update the warning message to help with this in the future, if you'd like to send a pull request :)

Thx @grovesNL! Can't believe I made this simple mistake, haha. Completely missed the step to switch to gfx/examples folder. It works now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kvark picture kvark  路  5Comments

kvark picture kvark  路  4Comments

djcsdy picture djcsdy  路  4Comments

Lokathor picture Lokathor  路  4Comments

Bastacyclop picture Bastacyclop  路  3Comments