Open shrinktofit opened 5 years ago
Here are the steps:
libportability_icd
, e.g. cd libportability_icd && cargo build --features metal
VULKAN_ICD_FILENAMES=<path_to_your_ICD.json>
Here are the steps:
- build
libportability_icd
, e.g.cd libportability_icd && cargo build --features metal
- make sure to have a good ICD definition. We have a few in-repo, e.g. portability-win-debug, and we want those for all configuration in the end. If there isn't one for your platform/config, just copy an existing one and modify the path, if needed.
- run your app with
VULKAN_ICD_FILENAMES=<path_to_your_ICD.json>
@kvark I modified metal
to vulkan
and VULKAN_ICD_FILENAMES
to VK_ICD_FILENAMES
My steps:
cargo build --manifest-path libportability/Cargo.toml --features vulkan
cd libportability_icd && cargo build --features vulkan
VK_ICD_FILENAMES=<path-to-the-portability-win-debug.json>
(I use windows 10 so I didn't modify that file)I ran my application, it successfully load the portability_icd.dll
. But a stackoverflow is produced during call vkCreateInstance
, I trace the call stack and I found in LunarG SDK's loader/loader.c
file, the vkCreateInstance
's loader_create_instance_chain()
invocation line is continuously called:
@shrinktofit I think there is an open issue about loading portability with --features vulkan
at the moment (https://github.com/LunarG/VulkanSamples/issues/162) that needs to be resolved.
Are you trying to test portability for use with DirectX 12 or something else? You could try --features dx12
instead (if you have it installed).
I think I misunderstood the feature
option...
It represent "which backend is choosen to implement the vulkan", not "do you want to implement vulkan or metal or dx12", right? Hah...
That's right 😄
@shrinktofit would you want to try out dx12 as @grovesNL suggested? Otherwise the issue can be closed.
I have successfully ran the LunarG/VulkanSmples according to readme. Next I wish to use it in my vulkan application but I don't know how to. I use lunarG SDK and it by default load my graphic card's vulkan driver.