refactor(RHI): 将窗口管理接口从 RHIDevice 移至 RHISwapChain

- 从 RHIDevice 抽象基类中移除 PollEvents/SwapBuffers/ShouldClose/SetShouldClose 接口
- 这些功能现在应该通过 RHISwapChain 访问
- 符合设计文档中定义的分层架构
This commit is contained in:
2026-03-18 02:32:31 +08:00
parent 83c2426830
commit 60c8461be3
4 changed files with 4 additions and 28 deletions

View File

@@ -293,20 +293,6 @@ RHIPipelineState* D3D12Device::CreatePipelineState(const PipelineStateDesc& desc
return nullptr;
}
bool D3D12Device::PollEvents() {
return false;
}
void D3D12Device::SwapBuffers() {
}
bool D3D12Device::ShouldClose() const {
return false;
}
void D3D12Device::SetShouldClose(bool shouldClose) {
}
D3D12CommandQueue* D3D12Device::CreateCommandQueueImpl(const CommandQueueDesc& desc) {
return nullptr;
}