mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 21:28:32 +09:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user