Rename transition_image_layout
This commit is contained in:
@@ -393,7 +393,7 @@ class HelloTriangleApplication {
|
|||||||
commandBuffer.begin({});
|
commandBuffer.begin({});
|
||||||
|
|
||||||
// Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL
|
// Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL
|
||||||
transition_image_layout(
|
transitionImageLayout(
|
||||||
imageIndex,
|
imageIndex,
|
||||||
vk::ImageLayout::eUndefined,
|
vk::ImageLayout::eUndefined,
|
||||||
vk::ImageLayout::eColorAttachmentOptimal,
|
vk::ImageLayout::eColorAttachmentOptimal,
|
||||||
@@ -438,7 +438,7 @@ class HelloTriangleApplication {
|
|||||||
commandBuffer.endRendering();
|
commandBuffer.endRendering();
|
||||||
|
|
||||||
// After rendering, transition the swapchain image to PRESENT_SRC
|
// After rendering, transition the swapchain image to PRESENT_SRC
|
||||||
transition_image_layout(
|
transitionImageLayout(
|
||||||
imageIndex,
|
imageIndex,
|
||||||
vk::ImageLayout::eColorAttachmentOptimal,
|
vk::ImageLayout::eColorAttachmentOptimal,
|
||||||
vk::ImageLayout::ePresentSrcKHR,
|
vk::ImageLayout::ePresentSrcKHR,
|
||||||
@@ -451,7 +451,7 @@ class HelloTriangleApplication {
|
|||||||
// Finish recording the command buffer
|
// Finish recording the command buffer
|
||||||
commandBuffer.end();
|
commandBuffer.end();
|
||||||
}
|
}
|
||||||
void transition_image_layout(
|
void transitionImageLayout(
|
||||||
uint32_t imageIndex,
|
uint32_t imageIndex,
|
||||||
vk::ImageLayout oldLayout,
|
vk::ImageLayout oldLayout,
|
||||||
vk::ImageLayout newLayout,
|
vk::ImageLayout newLayout,
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ class HelloTriangleApplication {
|
|||||||
commandBuffer.begin({});
|
commandBuffer.begin({});
|
||||||
|
|
||||||
// Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL
|
// Before starting rendering, transition the swapchain image to COLOR_ATTACHMENT_OPTIMAL
|
||||||
transition_image_layout(
|
transitionImageLayout(
|
||||||
imageIndex,
|
imageIndex,
|
||||||
vk::ImageLayout::eUndefined,
|
vk::ImageLayout::eUndefined,
|
||||||
vk::ImageLayout::eColorAttachmentOptimal,
|
vk::ImageLayout::eColorAttachmentOptimal,
|
||||||
@@ -491,7 +491,7 @@ class HelloTriangleApplication {
|
|||||||
commandBuffer.endRendering();
|
commandBuffer.endRendering();
|
||||||
|
|
||||||
// After rendering, transition the swapchain image to PRESENT_SRC
|
// After rendering, transition the swapchain image to PRESENT_SRC
|
||||||
transition_image_layout(
|
transitionImageLayout(
|
||||||
imageIndex,
|
imageIndex,
|
||||||
vk::ImageLayout::eColorAttachmentOptimal,
|
vk::ImageLayout::eColorAttachmentOptimal,
|
||||||
vk::ImageLayout::ePresentSrcKHR,
|
vk::ImageLayout::ePresentSrcKHR,
|
||||||
@@ -504,7 +504,7 @@ class HelloTriangleApplication {
|
|||||||
// Finish recording the command buffer
|
// Finish recording the command buffer
|
||||||
commandBuffer.end();
|
commandBuffer.end();
|
||||||
}
|
}
|
||||||
void transition_image_layout(
|
void transitionImageLayout(
|
||||||
uint32_t imageIndex,
|
uint32_t imageIndex,
|
||||||
vk::ImageLayout oldLayout,
|
vk::ImageLayout oldLayout,
|
||||||
vk::ImageLayout newLayout,
|
vk::ImageLayout newLayout,
|
||||||
|
|||||||
Reference in New Issue
Block a user