Skip to content

Commit c70b551

Browse files
committed
Set the HLSL supported compiler version to 2018
1 parent bca772c commit c70b551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/slang.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2364,7 +2364,7 @@ Dictionary<String, String> TranslationUnitRequest::getCombinedPreprocessorDefini
23642364
// variables.
23652365
{
23662366
// Used to identify level of HLSL language compatibility
2367-
combinedPreprocessorDefinitions.addIfNotExists("__HLSL_VERSION", "2020");
2367+
combinedPreprocessorDefinitions.addIfNotExists("__HLSL_VERSION", "2018");
23682368

23692369
// Indicates this is being compiled by the slang *compiler*
23702370
combinedPreprocessorDefinitions.addIfNotExists("__SLANG_COMPILER__", "1");

0 commit comments

Comments
 (0)