llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

HLSL Semantic pseudo-arguments

Open llvm-beanz opened this issue 4 years ago • 1 comments

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:

  • update the parser to handle SemanticN syntax and annotations
  • Update the HLSL spec to outline how these optional parameters are passed

llvm-beanz avatar Apr 26 '22 19:04 llvm-beanz

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

davidcook-msft avatar May 21 '24 18:05 davidcook-msft