Skip to content

Commit eb36f6c

Browse files
authored
Add a Source Language for Zig (KhronosGroup#403)
1 parent bdd1b2a commit eb36f6c

File tree

10 files changed

+15
-1
lines changed

10 files changed

+15
-1
lines changed

include/spirv/unified1/spirv.bf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ namespace Spv
7070
NZSL = 9,
7171
WGSL = 10,
7272
Slang = 11,
73+
Zig = 12,
7374
}
7475

7576
[AllowDuplicates, CRepr] public enum ExecutionModel

include/spirv/unified1/spirv.core.grammar.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10624,6 +10624,11 @@
1062410624
"enumerant" : "Slang",
1062510625
"value" : 11,
1062610626
"version" : "1.0"
10627+
},
10628+
{
10629+
"enumerant" : "Zig",
10630+
"value" : 12,
10631+
"version" : "1.0"
1062710632
}
1062810633
]
1062910634
},

include/spirv/unified1/spirv.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public enum SourceLanguage
6969
NZSL = 9,
7070
WGSL = 10,
7171
Slang = 11,
72+
Zig = 12,
7273
}
7374

7475
public enum ExecutionModel

include/spirv/unified1/spirv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ typedef enum SpvSourceLanguage_ {
7777
SpvSourceLanguageNZSL = 9,
7878
SpvSourceLanguageWGSL = 10,
7979
SpvSourceLanguageSlang = 11,
80+
SpvSourceLanguageZig = 12,
8081
SpvSourceLanguageMax = 0x7fffffff,
8182
} SpvSourceLanguage;
8283

include/spirv/unified1/spirv.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ enum SourceLanguage {
7373
SourceLanguageNZSL = 9,
7474
SourceLanguageWGSL = 10,
7575
SourceLanguageSlang = 11,
76+
SourceLanguageZig = 12,
7677
SourceLanguageMax = 0x7fffffff,
7778
};
7879

include/spirv/unified1/spirv.hpp11

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ enum class SourceLanguage : unsigned {
7373
NZSL = 9,
7474
WGSL = 10,
7575
Slang = 11,
76+
Zig = 12,
7677
Max = 0x7fffffff,
7778
};
7879

include/spirv/unified1/spirv.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
"HERO_C": 8,
8080
"NZSL": 9,
8181
"WGSL": 10,
82-
"Slang": 11
82+
"Slang": 11,
83+
"Zig": 12
8384
}
8485
},
8586
{

include/spirv/unified1/spirv.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ spv = {
6464
NZSL = 9,
6565
WGSL = 10,
6666
Slang = 11,
67+
Zig = 12,
6768
},
6869

6970
ExecutionModel = {

include/spirv/unified1/spirv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
'NZSL' : 9,
6565
'WGSL' : 10,
6666
'Slang' : 11,
67+
'Zig' : 12,
6768
},
6869

6970
'ExecutionModel' : {

include/spirv/unified1/spv.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ enum SourceLanguage : uint
7272
NZSL = 9,
7373
WGSL = 10,
7474
Slang = 11,
75+
Zig = 12,
7576
}
7677

7778
enum ExecutionModel : uint

0 commit comments

Comments
 (0)