Merge pull request #528 from msiglreith/fix_root_constants_name
Fix naming of root constants
This commit is contained in:
Коммит
edac731360
|
@ -1874,7 +1874,7 @@ void CompilerHLSL::emit_push_constant_block(const SPIRVariable &var)
|
||||||
auto backup_name = get_member_name(type.self, i);
|
auto backup_name = get_member_name(type.self, i);
|
||||||
auto member_name = to_member_name(type, i);
|
auto member_name = to_member_name(type, i);
|
||||||
set_member_name(type.self, constant_index,
|
set_member_name(type.self, constant_index,
|
||||||
sanitize_underscores(join(to_name(type.self), "_", member_name)));
|
sanitize_underscores(join(to_name(var.self), "_", member_name)));
|
||||||
emit_struct_member(type, member, i, "", layout.start);
|
emit_struct_member(type, member, i, "", layout.start);
|
||||||
set_member_name(type.self, constant_index, backup_name);
|
set_member_name(type.self, constant_index, backup_name);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче