[clang] [HLSL] Allow input semantics on structs (PR #159047)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 15 07:34:30 PDT 2025
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/159047 at github.com>
https://github.com/llvm-beanz commented:
We should have tests for some cases like:
```
struct S {
float4 f0 : SV_Position;
float4 f1; // error due to missing semantic here!
};
float4 main(S s) { }
// Semantics on return objects are required but not supported yet (right?)
float4 main2(float4 p : SV_POSITION, float4 f) { } // error for missing semantic on `f`
```
https://github.com/llvm/llvm-project/pull/159047
More information about the cfe-commits
mailing list