================
@@ -71,6 +71,11 @@ static bool isIntegerComponent(ElementType Type) {
 
 static Error diagnoseSemanticType(const SemanticSignatureElement &E) {
   switch (E.SemanticKind) {
+  case dxbc::PSV::SemanticKind::Target:
+    if (E.CompType != ElementType::F16 && E.CompType != ElementType::F32)
+      return signatureError(
+          "SV_Target requires 16- or 32-bit floating-point components");
----------------
inbelic wrote:

Thanks for noting, I have https://github.com/llvm/wg-hlsl/issues/508 to track 
looking into these discrepancies

https://github.com/llvm/llvm-project/pull/237027
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to