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

@@ -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,