Rename transitionImageLayout to transitionSwapChainImageLayout
This commit is contained in:
@@ -648,7 +648,7 @@ class HelloTriangleApplication {
|
||||
commandBuffer.begin({});
|
||||
|
||||
// Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL
|
||||
transitionImageLayout(
|
||||
transitionSwapChainImageLayout(
|
||||
imageIndex,
|
||||
vk::ImageLayout::eUndefined,
|
||||
vk::ImageLayout::eColorAttachmentOptimal,
|
||||
@@ -695,7 +695,7 @@ class HelloTriangleApplication {
|
||||
commandBuffer.endRendering();
|
||||
|
||||
// After rendering, transition the swapchain image to PRESENT_SRC
|
||||
transitionImageLayout(
|
||||
transitionSwapChainImageLayout(
|
||||
imageIndex,
|
||||
vk::ImageLayout::eColorAttachmentOptimal,
|
||||
vk::ImageLayout::ePresentSrcKHR,
|
||||
@@ -763,7 +763,7 @@ class HelloTriangleApplication {
|
||||
|
||||
throw std::runtime_error("failed to find suitable memory type!");
|
||||
}
|
||||
void transitionImageLayout(
|
||||
void transitionSwapChainImageLayout(
|
||||
uint32_t imageIndex,
|
||||
vk::ImageLayout oldLayout,
|
||||
vk::ImageLayout newLayout,
|
||||
|
||||
Reference in New Issue
Block a user