Skip to content

Commit

Permalink
Add a source language for Rust (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingertge authored Jan 15, 2025
1 parent 9ca0e67 commit 0659679
Show file tree
Hide file tree
Showing 10 changed files with 18 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 @@ -71,6 +71,7 @@ namespace Spv
WGSL = 10,
Slang = 11,
Zig = 12,
Rust = 13,
Max = 0x7fffffff,
}

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 @@ -11171,6 +11171,11 @@
"enumerant" : "Zig",
"value" : 12,
"version" : "1.0"
},
{
"enumerant" : "Rust",
"value" : 13,
"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 @@ -70,6 +70,7 @@ public enum SourceLanguage
WGSL = 10,
Slang = 11,
Zig = 12,
Rust = 13,
Max = 0x7fffffff,
}

Expand Down
2 changes: 2 additions & 0 deletions include/spirv/unified1/spirv.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ typedef enum SpvSourceLanguage_ {
SpvSourceLanguageWGSL = 10,
SpvSourceLanguageSlang = 11,
SpvSourceLanguageZig = 12,
SpvSourceLanguageRust = 13,
SpvSourceLanguageMax = 0x7fffffff,
} SpvSourceLanguage;

Expand Down Expand Up @@ -3055,6 +3056,7 @@ inline const char* SpvSourceLanguageToString(SpvSourceLanguage value) {
case SpvSourceLanguageWGSL: return "WGSL";
case SpvSourceLanguageSlang: return "Slang";
case SpvSourceLanguageZig: return "Zig";
case SpvSourceLanguageRust: return "Rust";
default: return "Unknown";
}
}
Expand Down
2 changes: 2 additions & 0 deletions include/spirv/unified1/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ enum SourceLanguage {
SourceLanguageWGSL = 10,
SourceLanguageSlang = 11,
SourceLanguageZig = 12,
SourceLanguageRust = 13,
SourceLanguageMax = 0x7fffffff,
};

Expand Down Expand Up @@ -3051,6 +3052,7 @@ inline const char* SourceLanguageToString(SourceLanguage value) {
case SourceLanguageWGSL: return "WGSL";
case SourceLanguageSlang: return "Slang";
case SourceLanguageZig: return "Zig";
case SourceLanguageRust: return "Rust";
default: return "Unknown";
}
}
Expand Down
2 changes: 2 additions & 0 deletions include/spirv/unified1/spirv.hpp11
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ enum class SourceLanguage : unsigned {
WGSL = 10,
Slang = 11,
Zig = 12,
Rust = 13,
Max = 0x7fffffff,
};

Expand Down Expand Up @@ -3051,6 +3052,7 @@ inline const char* SourceLanguageToString(SourceLanguage value) {
case SourceLanguage::WGSL: return "WGSL";
case SourceLanguage::Slang: return "Slang";
case SourceLanguage::Zig: return "Zig";
case SourceLanguage::Rust: return "Rust";
default: return "Unknown";
}
}
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 @@ -80,7 +80,8 @@
"NZSL": 9,
"WGSL": 10,
"Slang": 11,
"Zig": 12
"Zig": 12,
"Rust": 13
}
},
{
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 @@ -65,6 +65,7 @@ spv = {
WGSL = 10,
Slang = 11,
Zig = 12,
Rust = 13,
Max = 0x7fffffff,
},

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 @@ -65,6 +65,7 @@
'WGSL' : 10,
'Slang' : 11,
'Zig' : 12,
'Rust' : 13,
},

'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 @@ -73,6 +73,7 @@ enum SourceLanguage : uint
WGSL = 10,
Slang = 11,
Zig = 12,
Rust = 13,
Max = 0x7fffffff,
}

Expand Down

0 comments on commit 0659679

Please sign in to comment.