Rename transitionImageLayout to transitionSwapChainImageLayout

This commit is contained in:
2025-12-20 20:48:41 +00:00
parent 7dbb43f9d1
commit 284a7a818a
10 changed files with 30 additions and 30 deletions

View File

@@ -446,7 +446,7 @@ class HelloTriangleApplication {
commandBuffer.begin({});
// Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL
transitionImageLayout(
transitionSwapChainImageLayout(
imageIndex,
vk::ImageLayout::eUndefined,
vk::ImageLayout::eColorAttachmentOptimal,
@@ -491,7 +491,7 @@ class HelloTriangleApplication {
commandBuffer.endRendering();
// After rendering, transition the swapchain image to PRESENT_SRC
transitionImageLayout(
transitionSwapChainImageLayout(
imageIndex,
vk::ImageLayout::eColorAttachmentOptimal,
vk::ImageLayout::ePresentSrcKHR,
@@ -504,7 +504,7 @@ class HelloTriangleApplication {
// Finish recording the command buffer
commandBuffer.end();
}
void transitionImageLayout(
void transitionSwapChainImageLayout(
uint32_t imageIndex,
vk::ImageLayout oldLayout,
vk::ImageLayout newLayout,