#1602
dxgi: answer swapchain GetDevice and GetFullscreenDesc
D3D-193: IDXGISwapChain::GetDevice and IDXGISwapChain1::GetFullscreenDesc were E_NOTIMPL because the swapchain discarded the device passed to CreateSwapChainForHwnd.
- Hold that device with a reference, as native DXGI does, and answer
GetDevicethroughQueryInterface. - Answer
GetFullscreenDescwith a zeroed description andWindowed = TRUEfor this windowed swapchain. - Check both in
dxgi_swapchain_test.
Verified on Windows 11 with an RX 7900 XTX:
ctest -R ^dxgi_swapchain$ # passed
LEONIDA_VK_VALIDATION=1 ctest -R ^dxgi_swapchain$ # passed, 0 validation errorsNo game files.
AI-assisted.