Skip to content

Commit

Permalink
Update spirv.h, add support for "NZSL" language
Browse files Browse the repository at this point in the history
  • Loading branch information
jrprice committed Jul 6, 2023
1 parent 8f91541 commit 4707b56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/output_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ std::string ToStringSpvSourceLanguage(SpvSourceLanguage lang) {
return "SYCL";
case SpvSourceLanguageHERO_C:
return "Hero C";
case SpvSourceLanguageNZSL:
return "NZSL";

case SpvSourceLanguageMax:
break;
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_ {
SpvSourceLanguageCPP_for_OpenCL = 6,
SpvSourceLanguageSYCL = 7,
SpvSourceLanguageHERO_C = 8,
SpvSourceLanguageNZSL = 9,
SpvSourceLanguageMax = 0x7fffffff,
} SpvSourceLanguage;

Expand Down
1 change: 1 addition & 0 deletions spirv_reflect.c
Original file line number Diff line number Diff line change
Expand Up @@ -5321,6 +5321,7 @@ const char* spvReflectSourceLanguage(SpvSourceLanguage source_lang)
case SpvSourceLanguageCPP_for_OpenCL : return "CPP_for_OpenCL";
case SpvSourceLanguageSYCL : return "SYCL";
case SpvSourceLanguageHERO_C : return "Hero C";
case SpvSourceLanguageNZSL : return "NZSL";
case SpvSourceLanguageMax:
break;
}
Expand Down

0 comments on commit 4707b56

Please sign in to comment.