Module: wine Branch: master Commit: 4413e94908bfd561c759b121a7f460b51677cf0b URL: https://gitlab.winehq.org/wine/wine/-/commit/4413e94908bfd561c759b121a7f460b...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Apr 10 15:53:26 2023 -0500
dxgi: Introduce IWineDXGIDeviceParent::register_swapchain_texture() and use it in IDXGIDevice::CreateSurface().
Instead of having d3d11 create the wined3d texture, create it in dxgi instead, and let d3d11 create a d3d_texture2d object to wrap it.
This is a step towards getting rid of the create_swapchain_texture() callback, which is mildly difficult to work with and conceptually complex.
---
dlls/d3d11/d3d11_private.h | 3 +- dlls/d3d11/device.c | 45 +++++++++++++++++++++++++-- dlls/d3d11/texture.c | 77 ++++++++++++++++++++++++++-------------------- dlls/dxgi/device.c | 28 +++++++++-------- include/wine/winedxgi.idl | 2 ++ 5 files changed, 107 insertions(+), 48 deletions(-)