dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Support creating D3D9 device without a window

Open K0bin opened this issue 1 year ago • 2 comments

In spite of what the documentation says, it's possible to create a D3D9 device with NULL passed for both PresentationParams::hDeviceWindow and FocusWindow. This will still create an implicit swapchain and you can query the backbuffers and render to those. You can even call Present and that returns S_OK.

According to Wine commit logs, Planetary Annihilation: Titans depends on this. This also makes the "visuals" Wine test crash with DXVK.

K0bin avatar Mar 06 '24 23:03 K0bin

I seem to remember this not working for me which is why the DXVK tests all have windows.

misyltoad avatar Mar 06 '24 23:03 misyltoad

image

K0bin avatar Mar 07 '24 12:03 K0bin