[qfcc] Get block member offsets working again

And now vulkan accepts all my shaders (though it does moan a little
about my alias_shadow vertex shader not using all inputs).
This commit is contained in:
Bill Currie 2025-02-17 19:04:27 +09:00
parent 4ec6df385b
commit 46094e536e

View file

@ -201,6 +201,9 @@ glsl_block_type (const type_t *type, const char *pre_tag)
sym->id = s->id;
sym->attributes = s->attributes;
symtab_addsymbol (nt->symtab, sym);
if (s->offset >= 0 && type->symtab->type == stab_block) {
offset = s->offset;
}
if (type_align (ftype) > alignment) {
alignment = type_align (ftype);
}