Commit Graph

4 Commits

Author SHA1 Message Date
1ae9cee10a dxgi: implement Adapter::EnumOutputs and IDXGIOutput6 (D3D-313)
- Upgrade dxgi_com.h to dxgi1_6.h for IDXGIOutput6 / DXGI_OUTPUT_DESC1.
- Enumerate Win32 monitors via EnumDisplayMonitors / EnumDisplaySettingsW with headless 1920x1080@60 fallback.
- Implement Output (IDXGIOutput..IDXGIOutput6) and wire Adapter::EnumOutputs and SwapChain::GetContainingOutput against host dxgi.dll behavior.
- Add D3D-313 unit and host-comparison coverage in dxgi_swapchain_test.cpp (synthetic, no game data).

AI-assisted.
2026-11-22 23:10:03 +01:00
afd0d4c622 dxgi: IDXGIFactory6 and IDXGIFactory7 on the Vulkan factory (D3D-2)
CreateDXGIFactory2(IID_IDXGIFactory7) and QueryInterface for
IDXGIFactory6/7 failed on the layer's factory, which stopped at
IDXGIFactory5.

- EnumAdapterByGpuPreference returns the one Vulkan adapter at index 0
  for every preference.
- RegisterAdaptersChangedEvent / UnregisterAdaptersChangedEvent keep a
  cookie registry. The adapter list never changes, so the event is
  never signalled.

Every return code follows the host dxgi.dll, measured on Windows 11
with an RTX 3070:
- a preference outside the enum is accepted;
- a null out is DXGI_ERROR_INVALID_CALL;
- past the end is DXGI_ERROR_NOT_FOUND with *out cleared;
- a non-adapter riid is E_NOINTERFACE;
- a null event or cookie, and an event registered twice, are
  DXGI_ERROR_INVALID_CALL;
- cookies start at 1 and are separate from the occlusion cookies;
- an unknown cookie is DXGI_ERROR_NOT_FOUND.

dxgi_swapchain_test checks each answer. With main's factory it fails
at QueryInterface(IDXGIFactory6/7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:55:41 +01:00
bf42427ed3 feat(dxgi): add IDXGIFactory5 tearing query, present-mode selection, and waitable swapchains 2026-11-22 07:32:02 -03:00
9363490570 feat(dxgi): add Vulkan-backed IDXGIFactory4 and IDXGISwapChain3 COM shim with HWND GPU test 2026-11-22 02:06:28 -03:00