Skip to content

Commit d0006a3

Browse files
authored
Merge pull request KhronosGroup#357 from SirLynix/patch-1
Add NZSL and NZSLc as source language/generators
2 parents 3469b16 + fb116d7 commit d0006a3

File tree

11 files changed

+16
-2
lines changed

11 files changed

+16
-2
lines changed

include/spirv/spir-v.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989
<id value="36" vendor="Taichi Graphics" tool="Taichi" comment="Contact Rendong Liang [email protected], Repo https://github.com/taichi-dev/taichi"/>
9090
<id value="37" vendor="heroseh" tool="Hero C Compiler" comment="https://github.com/heroseh/hcc"/>
9191
<id value="38" vendor="Meta" tool="SparkSL" comment="Contact Dunfan Lu, [email protected], https://sparkar.facebook.com/ar-studio/learn/sparksl/sparksl-overview"/>
92-
<unused start="39" end="0xFFFF" comment="Tool ID range reservable for future use by vendors"/>
92+
<id value="39" vendor="SirLynix" tool="Nazara ShaderLang Compiler" comment="Contact Jérôme Leclercq, https://github.com/NazaraEngine/ShaderLang"/>
93+
<unused start="40" end="0xFFFF" comment="Tool ID range reservable for future use by vendors"/>
9394
</ids>
9495

9596
<!-- SECTION: SPIR-V Opcodes and Enumerants -->

include/spirv/unified1/spirv.bf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ namespace Spv
6767
CPP_for_OpenCL = 6,
6868
SYCL = 7,
6969
HERO_C = 8,
70+
NZSL = 9,
7071
}
7172

7273
[AllowDuplicates, CRepr] public enum ExecutionModel

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10159,6 +10159,10 @@
1015910159
{
1016010160
"enumerant" : "HERO_C",
1016110161
"value" : 8
10162+
},
10163+
{
10164+
"enumerant" : "NZSL",
10165+
"value" : 9
1016210166
}
1016310167
]
1016410168
},

include/spirv/unified1/spirv.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public enum SourceLanguage
6666
CPP_for_OpenCL = 6,
6767
SYCL = 7,
6868
HERO_C = 8,
69+
NZSL = 9,
6970
}
7071

7172
public enum ExecutionModel

include/spirv/unified1/spirv.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ typedef enum SpvSourceLanguage_ {
7474
SpvSourceLanguageCPP_for_OpenCL = 6,
7575
SpvSourceLanguageSYCL = 7,
7676
SpvSourceLanguageHERO_C = 8,
77+
SpvSourceLanguageNZSL = 9,
7778
SpvSourceLanguageMax = 0x7fffffff,
7879
} SpvSourceLanguage;
7980

include/spirv/unified1/spirv.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ enum SourceLanguage {
7070
SourceLanguageCPP_for_OpenCL = 6,
7171
SourceLanguageSYCL = 7,
7272
SourceLanguageHERO_C = 8,
73+
SourceLanguageNZSL = 9,
7374
SourceLanguageMax = 0x7fffffff,
7475
};
7576

include/spirv/unified1/spirv.hpp11

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ enum class SourceLanguage : unsigned {
7070
CPP_for_OpenCL = 6,
7171
SYCL = 7,
7272
HERO_C = 8,
73+
NZSL = 9,
7374
Max = 0x7fffffff,
7475
};
7576

include/spirv/unified1/spirv.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"HLSL": 5,
7777
"CPP_for_OpenCL": 6,
7878
"SYCL": 7,
79-
"HERO_C": 8
79+
"HERO_C": 8,
80+
"NZSL": 9
8081
}
8182
},
8283
{

include/spirv/unified1/spirv.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ spv = {
6161
CPP_for_OpenCL = 6,
6262
SYCL = 7,
6363
HERO_C = 8,
64+
NZSL = 9,
6465
},
6566

6667
ExecutionModel = {

include/spirv/unified1/spirv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
'CPP_for_OpenCL' : 6,
6262
'SYCL' : 7,
6363
'HERO_C' : 8,
64+
'NZSL' : 9,
6465
},
6566

6667
'ExecutionModel' : {

0 commit comments

Comments
 (0)