Skip to content

Commit

Permalink
Add a Source Language for Zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Snektron committed Jan 14, 2024
1 parent bdd1b2a commit a403dbc
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.bf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ namespace Spv
NZSL = 9,
WGSL = 10,
Slang = 11,
Zig = 12,
}

[AllowDuplicates, CRepr] public enum ExecutionModel
Expand Down
5 changes: 5 additions & 0 deletions include/spirv/unified1/spirv.core.grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -10624,6 +10624,11 @@
"enumerant" : "Slang",
"value" : 11,
"version" : "1.0"
},
{
"enumerant" : "Zig",
"value" : 12,
"version" : "1.0",
}
]
},
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public enum SourceLanguage
NZSL = 9,
WGSL = 10,
Slang = 11,
Zig = 12,
}

public enum ExecutionModel
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ typedef enum SpvSourceLanguage_ {
SpvSourceLanguageNZSL = 9,
SpvSourceLanguageWGSL = 10,
SpvSourceLanguageSlang = 11,
SpvSourceLanguageZig = 12,
SpvSourceLanguageMax = 0x7fffffff,
} SpvSourceLanguage;

Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ enum SourceLanguage {
SourceLanguageNZSL = 9,
SourceLanguageWGSL = 10,
SourceLanguageSlang = 11,
SourceLanguageZig = 12,
SourceLanguageMax = 0x7fffffff,
};

Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.hpp11
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ enum class SourceLanguage : unsigned {
NZSL = 9,
WGSL = 10,
Slang = 11,
Zig = 12,
Max = 0x7fffffff,
};

Expand Down
3 changes: 2 additions & 1 deletion include/spirv/unified1/spirv.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"HERO_C": 8,
"NZSL": 9,
"WGSL": 10,
"Slang": 11
"Slang": 11,
"Zig": 12
}
},
{
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ spv = {
NZSL = 9,
WGSL = 10,
Slang = 11,
Zig = 12,
},

ExecutionModel = {
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spirv.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
'NZSL' : 9,
'WGSL' : 10,
'Slang' : 11,
'Zig' : 12,
},

'ExecutionModel' : {
Expand Down
1 change: 1 addition & 0 deletions include/spirv/unified1/spv.d
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ enum SourceLanguage : uint
NZSL = 9,
WGSL = 10,
Slang = 11,
Zig = 12,
}

enum ExecutionModel : uint
Expand Down

0 comments on commit a403dbc

Please sign in to comment.