Rename transitionSwapChainImageLayout to transitionRenderingImageLayout
This commit is contained in:
@@ -791,7 +791,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,
|
||||
@@ -841,7 +841,7 @@ class HelloTriangleApplication {
|
||||
commandBuffer.endRendering();
|
||||
|
||||
// After rendering, transition the swapchain image to PRESENT_SRC
|
||||
transitionSwapChainImageLayout(
|
||||
transitionRenderingImageLayout(
|
||||
imageIndex,
|
||||
vk::ImageLayout::eColorAttachmentOptimal,
|
||||
vk::ImageLayout::ePresentSrcKHR,
|
||||
@@ -949,7 +949,7 @@ class HelloTriangleApplication {
|
||||
commandBuffer.pipelineBarrier(sourceStage, destinationStage, {}, {}, nullptr, barrier);
|
||||
endSingleTimeCommands(commandBuffer);
|
||||
}
|
||||
void transitionSwapChainImageLayout(
|
||||
void transitionRenderingImageLayout(
|
||||
uint32_t imageIndex,
|
||||
vk::ImageLayout oldLayout,
|
||||
vk::ImageLayout newLayout,
|
||||
|
||||
Reference in New Issue
Block a user