Rename transition_image_layout

This commit is contained in:
2025-12-18 00:06:27 +00:00
parent 903cc45d88
commit 88b5efc393
2 changed files with 6 additions and 6 deletions

View File

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

View File

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