On Sat, 7 Mar 2020 at 14:00, RĂ©mi Bernon rbernon@codeweavers.com wrote:
We need that in the next patch to have access to swapchain_ops.
This parameter may be NULL if the swapchain is not actually a wined3d swapchain (in the case of d3d12 swapchain).
The swapchain_state structure was for a large part introduced to avoid needing a wined3d swapchain for d3d12 swapchains, so this change doesn't seem all that attractive. Would it make sense to pass an ops structure to wined3d_swapchain_state_init() instead?