llvm / llvm-project

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

HLSL Semantic pseudo-arguments #55117

Open llvm-beanz opened 2 years ago

llvm-beanz commented 2 years ago

All HLSL semantics allow appending a number to the end of the semantic (i.e. SV_Target3), where the number is treated as an argument to the semantic attribute.

This is not to be mistaken for HLSL semantics that take arguments inside () as normal for attributes, which also exist.

We need to be able to support (parse) the optional presence of an index at the end of a semantic annotation.

AC:

davidcook-msft commented 6 months ago

This could be part of a larger Semantic workstream, to be revisited at a later date