21 [[nodiscard]]
static std::expected<ScreenshotCapture, std::string>
Create(ID3D12Device* device,
22 ID3D12Resource* backBuffer);
25 [[nodiscard]] ID3D12CommandList*
Record(ID3D12Resource* backBuffer);
28 [[nodiscard]] std::expected<void, std::string>
WriteBmp(
const fs::path& path)
const;
35 ComPtr<ID3D12GraphicsCommandList>
m_list;