From eb36f6c60b2d012162f207a8e948a07088eec332 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Wed, 17 Jan 2024 17:46:31 +0100 Subject: [PATCH] Add a Source Language for Zig (#403) --- 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 f0641f200..5e706fecd 100644 --- a/include/spirv/unified1/spirv.bf +++ b/include/spirv/unified1/spirv.bf @@ -70,6 +70,7 @@ namespace Spv NZSL = 9, WGSL = 10, Slang = 11, + Zig = 12, } [AllowDuplicates, CRepr] public enum ExecutionModel diff --git a/include/spirv/unified1/spirv.core.grammar.json b/include/spirv/unified1/spirv.core.grammar.json index bcb699932..599fc395c 100644 --- a/include/spirv/unified1/spirv.core.grammar.json +++ b/include/spirv/unified1/spirv.core.grammar.json @@ -10624,6 +10624,11 @@ "enumerant" : "Slang", "value" : 11, "version" : "1.0" + }, + { + "enumerant" : "Zig", + "value" : 12, + "version" : "1.0" } ] }, diff --git a/include/spirv/unified1/spirv.cs b/include/spirv/unified1/spirv.cs index 65830fda2..4f080323b 100644 --- a/include/spirv/unified1/spirv.cs +++ b/include/spirv/unified1/spirv.cs @@ -69,6 +69,7 @@ public enum SourceLanguage NZSL = 9, WGSL = 10, Slang = 11, + Zig = 12, } public enum ExecutionModel diff --git a/include/spirv/unified1/spirv.h b/include/spirv/unified1/spirv.h index f7acbf0cf..ef3e880ce 100644 --- a/include/spirv/unified1/spirv.h +++ b/include/spirv/unified1/spirv.h @@ -77,6 +77,7 @@ typedef enum SpvSourceLanguage_ { SpvSourceLanguageNZSL = 9, SpvSourceLanguageWGSL = 10, SpvSourceLanguageSlang = 11, + SpvSourceLanguageZig = 12, SpvSourceLanguageMax = 0x7fffffff, } SpvSourceLanguage; diff --git a/include/spirv/unified1/spirv.hpp b/include/spirv/unified1/spirv.hpp index 7ca9323c4..a52ed2c22 100644 --- a/include/spirv/unified1/spirv.hpp +++ b/include/spirv/unified1/spirv.hpp @@ -73,6 +73,7 @@ enum SourceLanguage { SourceLanguageNZSL = 9, SourceLanguageWGSL = 10, SourceLanguageSlang = 11, + SourceLanguageZig = 12, SourceLanguageMax = 0x7fffffff, }; diff --git a/include/spirv/unified1/spirv.hpp11 b/include/spirv/unified1/spirv.hpp11 index afc7beb16..ea50b4508 100644 --- a/include/spirv/unified1/spirv.hpp11 +++ b/include/spirv/unified1/spirv.hpp11 @@ -73,6 +73,7 @@ enum class SourceLanguage : unsigned { NZSL = 9, WGSL = 10, Slang = 11, + Zig = 12, Max = 0x7fffffff, }; diff --git a/include/spirv/unified1/spirv.json b/include/spirv/unified1/spirv.json index a04214bd7..05ddcf3ca 100644 --- a/include/spirv/unified1/spirv.json +++ b/include/spirv/unified1/spirv.json @@ -79,7 +79,8 @@ "HERO_C": 8, "NZSL": 9, "WGSL": 10, - "Slang": 11 + "Slang": 11, + "Zig": 12 } }, { diff --git a/include/spirv/unified1/spirv.lua b/include/spirv/unified1/spirv.lua index 4d974c51a..fdb2137f6 100644 --- a/include/spirv/unified1/spirv.lua +++ b/include/spirv/unified1/spirv.lua @@ -64,6 +64,7 @@ spv = { NZSL = 9, WGSL = 10, Slang = 11, + Zig = 12, }, ExecutionModel = { diff --git a/include/spirv/unified1/spirv.py b/include/spirv/unified1/spirv.py index 696dbad76..b95e217c6 100644 --- a/include/spirv/unified1/spirv.py +++ b/include/spirv/unified1/spirv.py @@ -64,6 +64,7 @@ 'NZSL' : 9, 'WGSL' : 10, 'Slang' : 11, + 'Zig' : 12, }, 'ExecutionModel' : { diff --git a/include/spirv/unified1/spv.d b/include/spirv/unified1/spv.d index 2486f2bea..e418ef26a 100644 --- a/include/spirv/unified1/spv.d +++ b/include/spirv/unified1/spv.d @@ -72,6 +72,7 @@ enum SourceLanguage : uint NZSL = 9, WGSL = 10, Slang = 11, + Zig = 12, } enum ExecutionModel : uint