-
Notifications
You must be signed in to change notification settings - Fork 187
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
Is it intended behavior that the Vulkan SDK is needed to compile any Rust code in debug mode that has ash
as a dependency?
#544
Comments
ash
as a dependency?ash
as a dependency?
The issue you link appears to be complaining about a runtime error, not a compiletime error. ash does not automatically call any Vulkan functions or automatically load any Vulkan extensions or layers; if your application is failing because it can't find an extension or layer, it is due to code downstream of ash. |
Thank you very much. I believed that I noticed |
And, as to what I'm trying to achieve, all I'd like to be able to do is move Vulkan SDK dependency behind a build flag in MFEKglif, so I'd just like to be able to provide something to say "please don't use Vulkan's debug layers for this build", as most of what goes wrong and needs debugging in MFEKglif has nothing to do with Vulkan—although I was critical of @aclysma's changes at the time, which eliminated many features (including this debug layer enable builder API,) turns out he was actually smart to make them, as Skulpin/Vulkan has receded from view as a frequent source of bugs for me…it's the most stable part of MFEKglif of late to be honest. |
You should edit the issue description to contain a short summary of the issue faced here, instead of pointing readers to an off-project issue/comment that mentions a "second error" which appears to be a screenshot of an |
@MarijnS95 My apologies, done. :) |
The top screenshot of this issue shows Ash 0.32.1 being in use, where none of those linking features exist yet. Runtime loading is the default (and has little/no impact on the layers, except from the SDK shipping both the linking libraries necessary in addition to the validation layers). FWIW these features only change the way the entrypoint - |
I see, I think I should open this against aclysma/rafx then, looking through the code there, I see this: impl Default for RafxValidationMode {
fn default() -> Self {
#[cfg(debug_assertions)]
let validation_mode = RafxValidationMode::EnabledIfAvailable;
#[cfg(not(debug_assertions))]
let validation_mode = RafxValidationMode::Disabled;
validation_mode
}
} If I follow that back all the way I do see that this is what's causing the issue here. Thank you! Sorry I did not understand too well boundary between |
See MFEK/glif#229, discovered by @eliheuer.
When compiling an application with an
ash
dependency viarafx-api
, it panics atUnable to load create_debug_utils_messenger_ext
unless compiled in release mode.The text was updated successfully, but these errors were encountered: