Use _m* for member names without OpMemberName.

Member names could conflict with type names in stripped modules with
very large structs.
This commit is contained in:
Hans-Kristian Arntzen 2017-07-29 21:44:20 +02:00
Родитель 7fd7dc9266
Коммит 1c6df1b7b4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5815,7 +5815,7 @@ string CompilerGLSL::to_member_name(const SPIRType &type, uint32_t index)
if (index < memb.size() && !memb[index].alias.empty())
return memb[index].alias;
else
return join("_", index);
return join("_m", index);
}
void CompilerGLSL::add_member_name(SPIRType &type, uint32_t index)