#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 #include #include #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