-
Notifications
You must be signed in to change notification settings - Fork 6
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
Cannot load renderdoc on Linux #147
Comments
I see, then I wasn't using the api how it's intended to be used. I think the example in the readme is probably a little misleading? as it does Also, is it possible to provide an API that always succeeds and does nothing when the application is not launched by renderdoc? |
Apologies for the delayed response, @yshui! Indeed, the current README is misleading at the moment, and this is a known issue. A full rewrite of this crate is in progress over at issue #138, with a particular focus on both safety and ergonomics. Comments and/or suggestions on that ticket are welcome! The work-in-progress rewrite branch associated with said ticket also contains a This task may time to complete, unfortunately, as I'm working on Granted, some uses cannot reasonably accommodate recompiling the application before debugging, and run-time fallback when the application is not launched by RenderDoc is preferred. In this case, a different workaround might be to instead work with a let mut renderdoc: Result<RenderDoc<V110>, _> = RenderDoc::new();
if let Ok(rd) = renderdoc.as_mut() {
let (major, minor, patch) = rd.get_api_version();
assert_eq!(major, 1u32);
assert!(minor >= 1u32);
} If all else fails, and the current outdated API of |
this crate calls
libloading::open
withRTLD_NOLOAD
, which causes thedlopen
call to returnNULL
, whichlibloading
interprets as an error.The text was updated successfully, but these errors were encountered: