Rename transition_image_layout
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user