diff --git a/14_command_buffers.cpp b/14_command_buffers.cpp index 20f91c5..eec731c 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 - transition_image_layout( + transitionImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -438,7 +438,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transition_image_layout( + transitionImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -451,7 +451,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transition_image_layout( + void transitionImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout, diff --git a/15_hello_triangle.cpp b/15_hello_triangle.cpp index 9829cbb..05ac136 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 - transition_image_layout( + transitionImageLayout( imageIndex, vk::ImageLayout::eUndefined, vk::ImageLayout::eColorAttachmentOptimal, @@ -491,7 +491,7 @@ class HelloTriangleApplication { commandBuffer.endRendering(); // After rendering, transition the swapchain image to PRESENT_SRC - transition_image_layout( + transitionImageLayout( imageIndex, vk::ImageLayout::eColorAttachmentOptimal, vk::ImageLayout::ePresentSrcKHR, @@ -504,7 +504,7 @@ class HelloTriangleApplication { // Finish recording the command buffer commandBuffer.end(); } - void transition_image_layout( + void transitionImageLayout( uint32_t imageIndex, vk::ImageLayout oldLayout, vk::ImageLayout newLayout,