[clang] [llvm] [HLSL] Add handling of Interpolation Modifiers (PR #225452)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 7 07:59:31 PDT 2026


================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -x c++ -verify %s
+// RUN: %clang_cc1 -x c -verify %s
+// expected-no-diagnostics
+
+// Interpolation modifiers are keywords only in HLSL.
+int nointerpolation, linear, centroid, noperspective, sample, center;
----------------
inbelic wrote:

These just become regular variable names

https://github.com/llvm/llvm-project/pull/225452


More information about the cfe-commits mailing list