Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.y:
for (k = 0; k < dst_component_count; ++k)
{
if (!(load = add_load_component(ctx, instrs, node, k, loc)))
return NULL;
if (!(store = hlsl_new_store_component(ctx, &block, &var_deref, k, &load->node)))
return NULL;
list_move_tail(instrs, &block.instrs);
}
if (!(load = hlsl_new_var_load(ctx, var, *loc)))
return NULL;
list_add_tail(instrs, &load->node.entry);
return &load->node;
- }
Can we reuse the above branch for this?