[clang] [HLSL] Implement output parameter (PR #101083)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 30 17:55:35 PDT 2024
================
@@ -0,0 +1,34 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -finclude-default-header -verify -Wdouble-promotion -Wconversion %s
+
+void OutVecFn(out float3) {}
+void InOutVecFn(inout float3) {}
+
+// Case 1: Calling out and inout parameters with types that cannot be
+// back-converted. In HLSL 2021 and earlier this only occurs when passing scalar
+// arguments to vector parameters because scalar->vector converison is implicit,
----------------
damyanp wrote:
```suggestion
// arguments to vector parameters because scalar->vector conversion is implicit,
```
https://github.com/llvm/llvm-project/pull/101083
More information about the cfe-commits
mailing list