feat(RHI): 实现 RHISwapChain 抽象基类

This commit is contained in:
2026-03-17 18:05:40 +08:00
parent 55865a0252
commit 354b6a5cfc
6 changed files with 163 additions and 17 deletions

View File

@@ -105,5 +105,19 @@ void* D3D12SwapChain::GetNativeHandle() const {
return reinterpret_cast<void*>(m_swapChain.Get());
}
RHITexture* D3D12SwapChain::GetCurrentBackBuffer() {
return GetBackBuffer(GetCurrentBackBufferIndex());
}
bool D3D12SwapChain::ShouldClose() const {
return false;
}
void D3D12SwapChain::SetShouldClose(bool shouldClose) {
}
void D3D12SwapChain::PollEvents() {
}
} // namespace RHI
} // namespace XCEngine