diff --git a/14_command_buffers.cpp b/14_command_buffers.cpp index 7004b3f..a95c6a4 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -438,7 +438,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -451,7 +451,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/15_hello_triangle.cpp b/15_hello_triangle.cpp index 665335e..4ad1fdc 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -491,7 +491,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -504,7 +504,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/16_frames_in_flight.cpp b/16_frames_in_flight.cpp index ec20cb1..7d93f28 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -501,7 +501,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -514,7 +514,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/17_swap_chain_recreation.cpp b/17_swap_chain_recreation.cpp index 5280185..afb719d 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -534,7 +534,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -547,7 +547,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/18_vertex_input.cpp b/18_vertex_input.cpp index 961fe73..ccbbb72 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -579,7 +579,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -592,7 +592,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/19_vertex_buffer.cpp b/19_vertex_buffer.cpp index 06c599b..8ea0b92 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -604,7 +604,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -627,7 +627,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/20_staging_buffer.cpp b/20_staging_buffer.cpp index 7e3316b..6605b3c 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -608,7 +608,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -676,7 +676,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/21_index_buffer.cpp b/21_index_buffer.cpp index 8689272..f6b7722 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -639,7 +639,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -707,7 +707,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/22_descriptor_layout.cpp b/22_descriptor_layout.cpp index e53bbd9..e820bf1 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -695,7 +695,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -763,7 +763,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/23_descriptor_sets.cpp b/23_descriptor_sets.cpp index 97bf7d1..a9b7a54 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 - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -738,7 +738,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -806,7 +806,7 @@ class HelloTriangleApplication { throw std::runtime_error("failed to find suitable memory type!"); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/24_texture_image.cpp b/24_texture_image.cpp index 7c9974a..c46a177 100644 --- a/24_texture_image.cpp +++ b/24_texture_image.cpp @@ -759,7 +759,7 @@ class HelloTriangleApplication { commandBuffer.begin({}); // Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -809,7 +809,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -917,7 +917,7 @@ class HelloTriangleApplication { commandBuffer.pipelineBarrier(sourceStage, destinationStage, {}, {}, nullptr, barrier); endSingleTimeCommands(commandBuffer); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/25_sampler.cpp b/25_sampler.cpp index 811930a..69b4ad5 100644 --- a/25_sampler.cpp +++ b/25_sampler.cpp @@ -791,7 +791,7 @@ class HelloTriangleApplication { commandBuffer.begin({}); // Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -841,7 +841,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -949,7 +949,7 @@ class HelloTriangleApplication { commandBuffer.pipelineBarrier(sourceStage, destinationStage, {}, {}, nullptr, barrier); endSingleTimeCommands(commandBuffer); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/26_texture_mapping.cpp b/26_texture_mapping.cpp index f30bf3a..8a5c014 100644 --- a/26_texture_mapping.cpp +++ b/26_texture_mapping.cpp @@ -820,7 +820,7 @@ class HelloTriangleApplication { commandBuffer.begin({}); // Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -870,7 +870,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transitionSwapChainImageLayout( + transitionRenderingImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -978,7 +978,7 @@ class HelloTriangleApplication { commandBuffer.pipelineBarrier(sourceStage, destinationStage, {}, {}, nullptr, barrier); endSingleTimeCommands(commandBuffer); } - void transitionSwapChainImageLayout( + void transitionRenderingImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout,