mirror of
https://github.com/openharmony/third_party_spirv-headers.git
synced 2026-07-19 14:53:32 -04:00
Compare enum names rather than values to determine last element
This commit is contained in:
@@ -481,7 +481,7 @@
|
||||
"AliasedPointerEXT": 5356,
|
||||
"CounterBuffer": 5634,
|
||||
"HlslCounterBufferGOOGLE": 5634,
|
||||
"HlslSemanticGOOGLE": 5635
|
||||
"HlslSemanticGOOGLE": 5635,
|
||||
"UserSemantic": 5635
|
||||
}
|
||||
},
|
||||
|
||||
@@ -347,7 +347,7 @@ namespace {
|
||||
bool printMax = (style != enumMask && maxEnum.size() > 0);
|
||||
|
||||
for (const auto& v : sorted)
|
||||
out << enumFmt(opPrefix, v, style, !printMax && v.first == sorted.back().first);
|
||||
out << enumFmt(opPrefix, v, style, !printMax && v.second == sorted.back().second);
|
||||
|
||||
if (printMax)
|
||||
out << maxEnum;
|
||||
|
||||
Reference in New Issue
Block a user