[clang] [llvm] [HLSL] Complete SV_Target support (PR #237027)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 13:52:52 PDT 2026


================
@@ -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


More information about the cfe-commits mailing list