[Chore] (MG_Backend/DirectVulkan): improve some wording

This commit is contained in:
2026-02-16 12:10:51 +08:00
parent 8f57e837b8
commit e1b59bcb46
3 changed files with 11 additions and 11 deletions
@@ -328,14 +328,14 @@ namespace MobileGL::MG_Backend::DirectVulkan {
// End command buffer
VK_VERIFY(vkEndCommandBuffer(commandBuffer));
m_frameContext.SetCurrentHasCommandBufferRecorded(true);
m_frameContext.SetCurrentCommandBufferRecorded(true);
}
void VulkanRenderer::Present() {
MOBILEGL_ASSERT(m_imageIndexAcquired < m_swapchainObject.GetImageCount(),
"Present, acquired image index out of range");
VkCommandBuffer& commandBuffer = m_frameContext.GetCurrentCommandBuffer();
const Bool hasRecordedWork = m_frameContext.GetCurrentHasCommandBufferRecorded();
const Bool hasRecordedWork = m_frameContext.HasCurrentCommandBufferRecorded();
Bool needsLayoutTransitionForPresent = false;
if (!hasRecordedWork) {
@@ -391,7 +391,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
submitInfo.signalSemaphoreCount = 1;
submitInfo.pSignalSemaphores = signalSemaphores;
VK_VERIFY(vkQueueSubmit(m_graphicsQueue, 1, &submitInfo, m_frameContext.GetCurrentImageInFlightFence()));
m_frameContext.SetCurrentHasCommandBufferRecorded(false);
m_frameContext.SetCurrentCommandBufferRecorded(false);
m_swapchainObject.SetImageLayout(m_imageIndexAcquired, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR);
// 2) Present current frame.