From e867c06631767a2d96424cbec530f9ee5e78180f Mon Sep 17 00:00:00 2001 From: pradyumans <95509728+pradyumans@users.noreply.github.com> Date: Wed, 4 Oct 2023 08:44:53 -0700 Subject: Add a Source Language for Slang (#383) * Add a Source Language for Slang * Changed src lang name from SLANG to Slang --- include/spirv/unified1/spirv.bf | 1 + include/spirv/unified1/spirv.core.grammar.json | 5 +++++ include/spirv/unified1/spirv.cs | 1 + include/spirv/unified1/spirv.h | 1 + include/spirv/unified1/spirv.hpp | 1 + include/spirv/unified1/spirv.hpp11 | 1 + include/spirv/unified1/spirv.json | 3 ++- include/spirv/unified1/spirv.lua | 1 + include/spirv/unified1/spirv.py | 1 + include/spirv/unified1/spv.d | 1 + 10 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/spirv/unified1/spirv.bf b/include/spirv/unified1/spirv.bf index 59419c4..bd86e70 100644 --- a/include/spirv/unified1/spirv.bf +++ b/include/spirv/unified1/spirv.bf @@ -69,6 +69,7 @@ namespace Spv HERO_C = 8, NZSL = 9, WGSL = 10, + Slang = 11, } [AllowDuplicates, CRepr] public enum ExecutionModel diff --git a/include/spirv/unified1/spirv.core.grammar.json b/include/spirv/unified1/spirv.core.grammar.json index d023ec7..161a8f2 100644 --- a/include/spirv/unified1/spirv.core.grammar.json +++ b/include/spirv/unified1/spirv.core.grammar.json @@ -10579,6 +10579,11 @@ "enumerant" : "WGSL", "value" : 10, "version" : "1.0" + }, + { + "enumerant" : "Slang", + "value" : 11, + "version" : "1.0" } ] }, diff --git a/include/spirv/unified1/spirv.cs b/include/spirv/unified1/spirv.cs index 345ae5f..0906c28 100644 --- a/include/spirv/unified1/spirv.cs +++ b/include/spirv/unified1/spirv.cs @@ -68,6 +68,7 @@ namespace Spv HERO_C = 8, NZSL = 9, WGSL = 10, + Slang = 11, } public enum ExecutionModel diff --git a/include/spirv/unified1/spirv.h b/include/spirv/unified1/spirv.h index 2a9650e..bae4784 100644 --- a/include/spirv/unified1/spirv.h +++ b/include/spirv/unified1/spirv.h @@ -76,6 +76,7 @@ typedef enum SpvSourceLanguage_ { SpvSourceLanguageHERO_C = 8, SpvSourceLanguageNZSL = 9, SpvSourceLanguageWGSL = 10, + SpvSourceLanguageSlang = 11, SpvSourceLanguageMax = 0x7fffffff, } SpvSourceLanguage; diff --git a/include/spirv/unified1/spirv.hpp b/include/spirv/unified1/spirv.hpp index 0cdf36c..1531e8b 100644 --- a/include/spirv/unified1/spirv.hpp +++ b/include/spirv/unified1/spirv.hpp @@ -72,6 +72,7 @@ enum SourceLanguage { SourceLanguageHERO_C = 8, SourceLanguageNZSL = 9, SourceLanguageWGSL = 10, + SourceLanguageSlang = 11, SourceLanguageMax = 0x7fffffff, }; diff --git a/include/spirv/unified1/spirv.hpp11 b/include/spirv/unified1/spirv.hpp11 index 478d8a6..5ac8310 100644 --- a/include/spirv/unified1/spirv.hpp11 +++ b/include/spirv/unified1/spirv.hpp11 @@ -72,6 +72,7 @@ enum class SourceLanguage : unsigned { HERO_C = 8, NZSL = 9, WGSL = 10, + Slang = 11, Max = 0x7fffffff, }; diff --git a/include/spirv/unified1/spirv.json b/include/spirv/unified1/spirv.json index 6c6cd27..04af9e4 100644 --- a/include/spirv/unified1/spirv.json +++ b/include/spirv/unified1/spirv.json @@ -78,7 +78,8 @@ "SYCL": 7, "HERO_C": 8, "NZSL": 9, - "WGSL": 10 + "WGSL": 10, + "Slang": 11 } }, { diff --git a/include/spirv/unified1/spirv.lua b/include/spirv/unified1/spirv.lua index b4259c2..d76a39c 100644 --- a/include/spirv/unified1/spirv.lua +++ b/include/spirv/unified1/spirv.lua @@ -63,6 +63,7 @@ spv = { HERO_C = 8, NZSL = 9, WGSL = 10, + Slang = 11, }, ExecutionModel = { diff --git a/include/spirv/unified1/spirv.py b/include/spirv/unified1/spirv.py index 2f65c43..477283e 100644 --- a/include/spirv/unified1/spirv.py +++ b/include/spirv/unified1/spirv.py @@ -63,6 +63,7 @@ spv = { 'HERO_C' : 8, 'NZSL' : 9, 'WGSL' : 10, + 'Slang' : 11, }, 'ExecutionModel' : { diff --git a/include/spirv/unified1/spv.d b/include/spirv/unified1/spv.d index 162081b..34b3204 100644 --- a/include/spirv/unified1/spv.d +++ b/include/spirv/unified1/spv.d @@ -71,6 +71,7 @@ enum SourceLanguage : uint HERO_C = 8, NZSL = 9, WGSL = 10, + Slang = 11, } enum ExecutionModel : uint -- cgit v1.2.3