#1602

dxgi: answer swapchain GetDevice and GetFullscreenDesc

Openbobcatchriswants to merge intofrom

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 GetDevice through QueryInterface.
  • Answer GetFullscreenDesc with a zeroed description and Windowed = TRUE for 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 errors

No game files.

AI-assisted.