[Chore] (MG_Backend/DirectVulkan): move ClearAttachmentsOnActiveRenderPass to VulkanRenderer

This commit is contained in:
2026-03-03 14:59:03 +08:00
parent 20e2768f27
commit 0ae36b71f5
4 changed files with 66 additions and 23 deletions
@@ -302,13 +302,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
Bool VkRenderPassManager::TryClearPendingAttachmentsOnActiveRenderPass(
VkCommandBuffer commandBuffer,
const RenderPassEntry& compatibleRenderPassEntry) {
if (!s_activeRenderPass || !s_clearManager) {
return false;
}
if (s_activeRenderPass->compatibilityHash != compatibleRenderPassEntry.compatibilityHash) {
return false;
}
VkClearRect clearRect{};
clearRect.rect.offset = {0, 0};
clearRect.rect.extent = {