mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 13:08:37 +00:00
- 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.
21 lines
866 B
C++
21 lines
866 B
C++
#pragma once
|
|
|
|
// COM wrappers for IDXGIFactory7, IDXGIAdapter3, IDXGIOutput6, and IDXGISwapChain3 backed by VulkanSwapchain (dxgi_swapchain.h).
|
|
// Keeps the host dxgi.dll out of the Vulkan presentation path (docs/d3d12_vulkan.md section 3.1 & 4).
|
|
|
|
#include <windows.h>
|
|
#include <dxgi1_6.h>
|
|
#include <d3d12.h>
|
|
|
|
#include "dxgi_swapchain.h"
|
|
|
|
namespace rt::dxgi {
|
|
|
|
// Creates an IDXGIFactory4 COM object whose CreateSwapChainForHwnd creates a VulkanSwapchain
|
|
// and registers its back-buffer images with `context` (keyed by the returned ID3D12Resource* pointer).
|
|
HRESULT create_factory(leonida::VulkanContext& context, PFN_vkGetInstanceProcAddr gipa, VkInstance instance,
|
|
VkPhysicalDevice physical, PFN_vkGetDeviceProcAddr gdpa, VkQueue queue,
|
|
std::uint32_t queue_family, REFIID riid, void** out);
|
|
|
|
} // namespace rt::dxgi
|