Skip to content

Conversation

LegNeato
Copy link
Collaborator

This was my issue and it was unclear the cause. I am not sure if this is the only case where this error shows up, hence the wording. Open to better wording if you have it.

This was my issue and it was unclear the cause. I am not sure if this is the only case where this error shows up, hence the wording. Open to better wording if you have it.
@LegNeato LegNeato added this pull request to the merge queue Mar 17, 2025
Merged via the queue into Rust-GPU:main with commit 7e9ceb2 Mar 17, 2025
7 checks passed
@LegNeato LegNeato deleted the LegNeato-patch-2 branch March 17, 2025 01:31
@Firestar99
Copy link
Member

Verify that crate-type is set correctly, eg. crate-type = ["lib", "dylib"] within the [lib] section of your shader's Cargo.toml.

I know technically "dylib" is sufficient, but without lib I'm concerned that if the crate is also used on the CPU, it switches to dynamic linking instead of static linking and inlining + LTO can't do much then. But take this with a grain of salt, not too familiar with this topic.

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 this pull request may close these issues.

3 participants