microsoft / microsoft/DirectXShaderCompiler

[SPIR-V] Teach DXC about component decorations

Open
#6,831 1 comment 0 reactions 2 assignees View on GitHub

@cassiebeckley is already working on this.

Since Aug 23, 2024.

bug spirv
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.