Rust-GPU / Rust-GPU/rust-gpu

`SpirvBuilder` multimodule clobbers duplicate named shaders

Open
#397 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
3.4k
Forks
125
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.