Skip to content

Commit

Permalink
Merge pull request #143 from WANNABY/yaml_uniform_block_fix
Browse files Browse the repository at this point in the history
fixed YamlGenerator's flattened uniform block reflection
  • Loading branch information
floooh authored Aug 13, 2024
2 parents 24089e3 + 7b17147 commit 1a1f45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shdc/generators/yaml.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ void YamlGenerator::gen_uniform_block(const UniformBlock& ub) {
l_open("uniforms:\n");
if (ub.flattened) {
l_open("-\n");
l("name: {}\n", ub.struct_info.struct_items[0].name);
l("name: {}\n", ub.struct_info.name);
l("type: {}\n", flattened_uniform_type(ub.struct_info.struct_items[0].type));
l("array_count: {}\n", roundup(ub.struct_info.struct_items[0].size, 16) / 16);
l("array_count: {}\n", roundup(ub.struct_info.size, 16) / 16);
l("offset: 0\n");
l_close();
} else {
Expand Down

0 comments on commit 1a1f45e

Please sign in to comment.