new_editor: stabilize resize lifecycle groundwork

This commit is contained in:
2026-04-23 00:36:28 +08:00
parent c10367a42e
commit 03e0b362f7
19 changed files with 439 additions and 161 deletions

View File

@@ -186,6 +186,20 @@ RHIDevice* D3D12WindowRenderer::GetRHIDevice() const {
return m_hostDevice.GetRHIDevice();
}
std::uint32_t D3D12WindowRenderer::GetViewportResourceRetirementSlotCount() const {
return kFrameContextCount;
}
bool D3D12WindowRenderer::TryGetActiveViewportResourceRetirementSlot(std::uint32_t& outSlot) const {
outSlot = 0u;
if (GetRHIDevice() == nullptr) {
return false;
}
outSlot = m_activeFrameSlot;
return true;
}
bool D3D12WindowRenderer::CreateViewportTextureHandle(
::XCEngine::RHI::RHITexture& texture,
std::uint32_t width,