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