[Fix] (MG_Util/ShaderTranspiler/SpvcSession): use proper usage bit to select the right code path. Fix bugs along the way

This commit is contained in:
2026-04-01 14:57:00 +08:00
parent 83d1ce177e
commit 1b2a7989af
6 changed files with 12 additions and 11 deletions
@@ -286,7 +286,7 @@ namespace MobileGL {
for (uint32_t i = 0; i < bindingCount; ++i) {
auto* binding = bindings[i];
if (binding->descriptor_type != SPV_REFLECT_DESCRIPTOR_TYPE_UNIFORM_BUFFER) continue;
if (strcmp(binding->name, GLOBAL_UBO_NAME) != 0) continue;
if (strcmp(binding->type_description->type_name, GLOBAL_UBO_NAME) != 0) continue;
auto& block = binding->block;
metadata.globalUboSize = block.size;