Skip to content

[SPIR-V] Teach DXC about component decorations #6831

Open

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

Activity

  1. added
    bug
    spirv
    needs-triage
    on Jul 29, 2024
  2. s-perron commented on Aug 23, 2024

    @s-perron
    CollaboratorAuthor

    Cassandra Beckley (@cassiebeckley) While you are looking into how to implement vk::location in clang, think about how to incorporate the component.

  3. moved this from For Google to Triaged in HLSL Triageon Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugspirv

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions