`SpirvBuilder` multimodule clobbers duplicate named shaders
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
Compiling shaders with the same name clobbers one of the outputs.
This was actually found by @LegNeato and logged in the cargo-gpu repo https://github.com/Rust-GPU/cargo-gpu/issues/85, but during investigation (https://github.com/Rust-GPU/cargo-gpu/pull/110) it seems the problem happens further up in SpirvBuilder.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the SpirvBuilder multimodule compilation path described in this issue, then review cargo-gpu issue #85 and pull request #110 for the reported duplicate-name behavior and investigation context. Reproduce a compilation with multiple shaders sharing a name and verify that each output remains distinct without clobbering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100