Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a statically linked vulkan library #462

Closed
lucypero opened this issue Aug 1, 2021 · 2 comments · Fixed by #457
Closed

Support for a statically linked vulkan library #462

lucypero opened this issue Aug 1, 2021 · 2 comments · Fixed by #457

Comments

@lucypero
Copy link

lucypero commented Aug 1, 2021

My platform's Vulkan driver is a static library. How do I plug that with ash?

@MaikKlein
Copy link
Member

MaikKlein commented Aug 1, 2021

It is currently being worked on #457. Otherwise you can have a look at https://github.com/EmbarkStudios/ash-molten/blob/main/src/lib.rs to see how it statically links with moltevk.

@MarijnS95
Copy link
Collaborator

For ash-molten you can effectively add println!("cargo:rustc-link-lib=static=./path/to/your/libvulkan.a"); as suggested here (note that that PR is required on Ash 0.33 going forwards) in build.rs for your respective platform, and we'll probably try to figure out how to make dynamic and static linking as configurable as possible in #457, linked above already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants