microsoft / microsoft/DirectXShaderCompiler
[SPIR-V] Teach DXC about component decorations
@cassiebeckley is already working on this.
Since Aug 23, 2024.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Description
Two inputs or outputs can have the same location as long as they have different components. DXC is currently unaware of the component and will issue an error if two inputs have the same location. This should be updated, so that we can add the component decoration.
Steps to Reproduce
https://godbolt.org/z/EYf4bEce5
Actual Behavior
The compiler issues an error. We would expect no error, and color should have two decoration. A location decoration setting its location to 0, and a component decoration setting the component to 1.
Environment
- DXC version latest
- Host Operating System all
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.
Assessment
This issue has not been assessed yet.