File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,10 @@ void DynamicRendering::build_command_buffers()
375375 {
376376 vkb::image_layout_transition (draw_cmd_buffer,
377377 swapchain_buffers[i].image ,
378+ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
379+ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
380+ 0 ,
381+ VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
378382 VK_IMAGE_LAYOUT_UNDEFINED,
379383 VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
380384 range);
Original file line number Diff line number Diff line change @@ -979,7 +979,7 @@ void ShaderObject::build_command_buffers()
979979 // Barriers for images that are rendered to
980980 vkb::image_layout_transition (draw_cmd_buffer,
981981 output_images[current_output_format].image ,
982- VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT ,
982+ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT ,
983983 VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
984984 0 ,
985985 VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
You can’t perform that action at this time.
0 commit comments