feat(RHI): 实现 RHISwapChain 抽象基类
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user