28 Aug
2023
28 Aug
'23
1:29 p.m.
```diff + const struct vkd3d_shader_register reg = + { + .type = VKD3DSPR_SAMPLER, + .idx[0].offset = register_id, + .idx_count = 1, + }; ```
This is hardly the only place that does something like this, but could we please start using shader_register_init() or helpers built on top of that? Mainly to make life slightly easier for people touching struct vkd3d_shader_register in the future, of course. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/312#note_43560