mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 00:11:06 +00:00
Merge pull request #528 from msiglreith/fix_root_constants_name
Fix naming of root constants
This commit is contained in:
commit
edac731360
@ -1874,7 +1874,7 @@ void CompilerHLSL::emit_push_constant_block(const SPIRVariable &var)
|
||||
auto backup_name = get_member_name(type.self, i);
|
||||
auto member_name = to_member_name(type, i);
|
||||
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);
|
||||
set_member_name(type.self, constant_index, backup_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user