mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Support assignment into array elements in SPIR-V
Just a missed detection of needing to use access chains.
This commit is contained in:
parent
42fc1323e1
commit
270c57e46e
1 changed files with 1 additions and 1 deletions
|
@ -1484,7 +1484,7 @@ spirv_assign (const expr_t *e, spirvctx_t *ctx)
|
|||
((expr_t *) e->assign.dst)->id = src;
|
||||
return src;
|
||||
}
|
||||
if (e->assign.dst->type == ex_field) {
|
||||
if (e->assign.dst->type == ex_field || e->assign.dst->type == ex_array) {
|
||||
const type_t *res_type;
|
||||
const type_t *acc_type;
|
||||
dst = spirv_access_chain (e->assign.dst, ctx, &res_type, &acc_type);
|
||||
|
|
Loading…
Reference in a new issue