14 Feb
2024
14 Feb
'24
10:01 p.m.
Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/fx.c:
+ put_u32(buffer, bind_point); /* Bind point */ + + put_u32(buffer, 0); /* Annotations count */ + /* FIXME: write annotations */ + + count = 0; + size = 0; + LIST_FOR_EACH_ENTRY(var, &ctx->globals->vars, struct hlsl_ir_var, scope_entry) + { + if (var->buffer != b) + continue; + + write_fx_4_variable(var, fx); + size += get_fx_4_type_size(var->data_type); + ++count; + } This writes every global variable, including unused, static, and synthetic variables. Is that correct?
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/636#note_61207