From 284a7a818aa04f31b81268a2bb81dd9b44dcbb51 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 20 Dec 2025 20:48:41 +0000 Subject: [PATCH] Rename transitionImageLayout to transitionSwapChainImageLayout --- 14_command_buffers.cpp | 6 +++--- 15_hello_triangle.cpp | 6 +++--- 16_frames_in_flight.cpp | 6 +++--- 17_swap_chain_recreation.cpp | 6 +++--- 18_vertex_input.cpp | 6 +++--- 19_vertex_buffer.cpp | 6 +++--- 20_staging_buffer.cpp | 6 +++--- 21_index_buffer.cpp | 6 +++--- 22_descriptor_layout.cpp | 6 +++--- 23_descriptor_sets.cpp | 6 +++--- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/14_command_buffers.cpp b/14_command_buffers.cpp index eec731c..7004b3f 100644 --- a/14_command_buffers.cpp +++ b/14_command_buffers.cpp @@ -393,7 +393,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, @@ -438,7 +438,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -451,7 +451,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/15_hello_triangle.cpp b/15_hello_triangle.cpp index 05ac136..665335e 100644 --- a/15_hello_triangle.cpp +++ b/15_hello_triangle.cpp @@ -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, diff --git a/16_frames_in_flight.cpp b/16_frames_in_flight.cpp index c4ad11e..ec20cb1 100644 --- a/16_frames_in_flight.cpp +++ b/16_frames_in_flight.cpp @@ -456,7 +456,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, @@ -501,7 +501,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -514,7 +514,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/17_swap_chain_recreation.cpp b/17_swap_chain_recreation.cpp index 3a067d4..5280185 100644 --- a/17_swap_chain_recreation.cpp +++ b/17_swap_chain_recreation.cpp @@ -489,7 +489,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, @@ -534,7 +534,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -547,7 +547,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/18_vertex_input.cpp b/18_vertex_input.cpp index 6001e98..961fe73 100644 --- a/18_vertex_input.cpp +++ b/18_vertex_input.cpp @@ -534,7 +534,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, @@ -579,7 +579,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -592,7 +592,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/19_vertex_buffer.cpp b/19_vertex_buffer.cpp index 7878458..06c599b 100644 --- a/19_vertex_buffer.cpp +++ b/19_vertex_buffer.cpp @@ -558,7 +558,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, @@ -604,7 +604,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -627,7 +627,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/20_staging_buffer.cpp b/20_staging_buffer.cpp index 2f1b3d0..7e3316b 100644 --- a/20_staging_buffer.cpp +++ b/20_staging_buffer.cpp @@ -562,7 +562,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, @@ -608,7 +608,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -676,7 +676,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/21_index_buffer.cpp b/21_index_buffer.cpp index 68cc1a9..8689272 100644 --- a/21_index_buffer.cpp +++ b/21_index_buffer.cpp @@ -592,7 +592,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, @@ -639,7 +639,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -707,7 +707,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/22_descriptor_layout.cpp b/22_descriptor_layout.cpp index 33731b9..e53bbd9 100644 --- a/22_descriptor_layout.cpp +++ b/22_descriptor_layout.cpp @@ -648,7 +648,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, @@ -695,7 +695,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -763,7 +763,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/23_descriptor_sets.cpp b/23_descriptor_sets.cpp index 7b6f4b5..97bf7d1 100644 --- a/23_descriptor_sets.cpp +++ b/23_descriptor_sets.cpp @@ -688,7 +688,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, @@ -738,7 +738,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionImageLayout( + transitionSwapChainImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -806,7 +806,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionImageLayout( + void transitionSwapChainImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout,