[clang] [llvm] [HLSL] Add support for SV_ViewID (PR #236259)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 11:54:11 PDT 2026


================
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -finclude-default-header -x hlsl -verify=dxil -o - %s
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.1-library -finclude-default-header -x hlsl -verify=ok -o - %s
+// RUN: %clang_cc1 -triple spirv-pc-vulkan1.3-library -finclude-default-header -x hlsl -verify=ok -o - %s
+
+// SV_ViewID requires shader model 6.1 for DXIL.
+// The shader model restriction does not apply to SPIR-V, which is only run to check that no error is emitted.
----------------
joaosaffran wrote:

Is there a minimum Vulkan version for it, though?

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


More information about the cfe-commits mailing list