Aug. 17, 2026
6:32 p.m.
I think this can be improved a bit: Like in adapter_vk_create_rendertarget_view, figure out the total view count, then run a for loop. There's no need to make vk_image_view[0] special I think. The nasty thing will be error handling: If a view creation fails you'll have to iterate from 0 to i (the successfully created views) and destroy them -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10567#note_149088