microsoft / microsoft/DirectXShaderCompiler
Compilation fails with no diagnostics when root signature defines two CBVs with the same register
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Description
Compilation fails with no diagnostics when root signature defines two CBVs with the same register. It should instead fail with a helpful diagnostic.
Steps to Reproduce
$ cat shader.hlsl
[RootSignature("CBV(b0), CBV(b0)")]
void main()
{
}
$ dxc -E main -T vs_6_0 shader.hlsl
$ echo "$?"
5
Compiler Explorer link: https://godbolt.org/z/onz55Waz7
Actual Behavior
Compiler does not print any diagnostics and exits with exit status 5.
Environment
- DXC version: libdxcompiler.so: 1.7(dev;4006-69e54e29); libdxil.so: 1.7
- Host Operating System: NixOS GNU/Linux 23.11.928.50aa30a13c4a (Tapir)
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 reproducing the failure with dxc -E main -T vs_6_0 using the shader.hlsl example or the linked Compiler Explorer case. Trace how the root signature CBV(b0), CBV(b0) input is handled and ensure compilation reports a helpful diagnostic instead of only exit status 5.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100