Henri Verbeet pushed to branch master at wine / vkd3d
Commits: 883ffc5f by Henri Verbeet at 2025-04-28T12:14:36+02:00 demos: Split demo_win32.h.
Much like we did for demo_xcb.h, demo_win32.h now just has the bits for creating windows and handling events, while demo_d3d12.h has the d3d12 and dxgi bits.
- - - - - dfe3ad55 by Henri Verbeet at 2025-04-28T12:16:10+02:00 demos: Make the demos work in the Windows build.
Commit 02fe9f5bdf5f9268d06da8bbe95f7157cd2be617 introduced linking the Windows build of the demos with d3d12 and dxgi, while also still linking to libvkd3d-utils.la. That happens to more or less work on Wine; we get vkd3d-utils' D3D12CreateDevice(), and Wine's IDXGIFactory2_CreateSwapChainForHwnd(), but because Wine's implementation of d3d12 swapchains uses vkd3d, we're able to use the resulting swapchain buffers even though the instance of vkd3d used by Wine may not be the same instance of vkd3d used by the demos. Perhaps unsurprisingly, things don't go nearly as well on Windows.
We could of course stop linking the demos to vkd3d-utils on Windows, but that's not that interesting; we're trying to show what vkd3d can do here, not what d3d12 can do.
- - - - -
7 changed files:
- Makefile.am - configure.ac - demos/demo.h - + demos/demo_d3d12.h - demos/demo_vkd3d.h - demos/demo_win32.h - demos/demo_xcb.h
View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/compare/ceb2787d466713096ea9746d2b63a...