Automatically include used capabilities when covered by vulkan target version spec
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
Discussed in https://github.com/Rust-GPU/rust-gpu/discussions/385
Originally posted by nazar-pc September 15, 2025
I'm getting the following error:
error: error:0:0 - Operand 3 of Decorate requires one of these capabilities: Kernel GroupNonUniform
OpDecorate %subgroup_id BuiltIn SubgroupId
If my understanding is correct, this capability is already included by default in spirv-unknown-vulkan1.3 target that I'm using.
Is this a bug in rust-gpu, spirv-opt or am I missing something?
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 reading discussion #385 and reproducing the reported SubgroupId capability error with the spirv-unknown-vulkan1.3 target. Trace how the target version specification and used capabilities are handled; done means capabilities covered by the target are included automatically and the diagnostic no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100