llvm / llvm-project

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

[HLSL] Input structs with semantics on members #57875

Open llvm-beanz opened 1 year ago

llvm-beanz commented 1 year ago

HLSL entry functions can take structs as inputs if all the members of the struct are annotated with semantic annotations.

bogner commented 1 year ago

We should probably consolidate the visitor logic for this with the handling for OpenCL kernel parameters (see checkIsValidOpenCLKernelParameter)