Skip to content

Commit

Permalink
Adjust color attachment barrier (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaWillems authored Jan 13, 2025
1 parent 2fcc94b commit b3cb382
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2024, Sascha Willems
/* Copyright (c) 2024-2025, Sascha Willems
*
* SPDX-License-Identifier: Apache-2.0
*
Expand Down Expand Up @@ -834,7 +834,7 @@ void DynamicRenderingLocalRead::build_command_buffers()
subresource_range_depth.levelCount = VK_REMAINING_MIP_LEVELS;
subresource_range_depth.layerCount = VK_REMAINING_ARRAY_LAYERS;

vkb::image_layout_transition(cmd, swapchain_buffers[i].image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, subresource_range_color);
vkb::image_layout_transition(cmd, swapchain_buffers[i].image, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, 0, VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, subresource_range_color);
vkb::image_layout_transition(cmd, depth_stencil.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL, subresource_range_depth);

VkRenderingAttachmentInfoKHR color_attachment_info[4]{};
Expand Down

0 comments on commit b3cb382

Please sign in to comment.