llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.05k stars 11.08k forks source link

[HLSL] Diagnostics for semantic annotations #87393

Open llvm-beanz opened 3 months ago

llvm-beanz commented 3 months ago

Description

This issue tracks all-up diagnostics for semantic annotations. We need to identify all the parts of this.

For example:

In HLSL there are certain combinations of semantics that are valid for inputs and outputs of shaders as defined by the shader stage. @bob80905 began writing a proposal for how we can perform this analysis and verification during semantic analysis: https://github.com/microsoft/hlsl-specs/pull/156

Acceptance Criteria

Implement robust diagnostic for combinations of semantics on inputs and outputs as defined in the specification above.

Sub tasks

damyanp commented 3 months ago

See this DXC bug that has some cases that should be considered here: https://github.com/microsoft/DirectXShaderCompiler/issues/3508