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?