new_editor: stabilize resize lifecycle groundwork
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user