22 static constexpr DXGI_FORMAT
FORMAT = DXGI_FORMAT_R8G8B8A8_UNORM;
24 [[nodiscard]]
static std::expected<SwapChain, std::string>
Create(ID3D12Device* device, IDXGIFactory6* factory,
25 ID3D12CommandQueue* directQueue, HWND window,
26 uint32_t maxFrameLatency);
33 [[nodiscard]] D3D12_CPU_DESCRIPTOR_HANDLE
RenderTargetView(uint32_t index)
const;
41 bool Resize(ID3D12Device* device, uint32_t width, uint32_t height);
49 void operator()(HANDLE handle)
const { CloseHandle(handle); }
static std::expected< SwapChain, std::string > Create(ID3D12Device *device, IDXGIFactory6 *factory, ID3D12CommandQueue *directQueue, HWND window, uint32_t maxFrameLatency)