- hw[i].src_offset = src_offset;
- hw[i].index = attrib_to_buffer[i];
- hw[i].format = so->formats[i];
- hw[i].unknown1 = 0x2;
+ pan_pack(out + i, ATTRIBUTE, cfg) {
+ cfg.buffer_index = attrib_to_buffer[i];
+ cfg.format = so->formats[i];
+ cfg.offset = src_offset;
+ }