From 133d705dcaa69f10f7a713605d5080405e49875c Mon Sep 17 00:00:00 2001 From: "Tony (Atanas) Zlatinski" Date: Tue, 11 Mar 2025 20:46:43 -0500 Subject: Set the HLSL supported compiler version to 2018 (#6502) Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> --- source/slang/slang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index a23342458..8dfaf115e 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -2365,7 +2365,7 @@ Dictionary TranslationUnitRequest::getCombinedPreprocessorDefini // variables. { // Used to identify level of HLSL language compatibility - combinedPreprocessorDefinitions.addIfNotExists("__HLSL_VERSION", "2020"); + combinedPreprocessorDefinitions.addIfNotExists("__HLSL_VERSION", "2018"); // Indicates this is being compiled by the slang *compiler* combinedPreprocessorDefinitions.addIfNotExists("__SLANG_COMPILER__", "1"); -- cgit v1.2.3