fix: refresh d3d12 swapchain backbuffers on resize

This commit is contained in:
2026-03-28 16:26:31 +08:00
parent 1fa97dc246
commit ec1535ad25
3 changed files with 78 additions and 18 deletions

View File

@@ -33,6 +33,9 @@ public:
void* GetNativeHandle() override;
private:
bool RefreshBackBuffers();
void ReleaseBackBuffers();
ComPtr<IDXGISwapChain3> m_swapChain;
ComPtr<ID3D12CommandQueue> m_commandQueue;
uint32_t m_width;