From a4f1060ebc912e9ed9beca8ff1860944ff7f08a3 Mon Sep 17 00:00:00 2001 From: Rua Date: Thu, 27 Oct 2022 10:13:29 +0200 Subject: [PATCH] Fix #2047 --- vulkano/src/render_pass/macros.rs | 34 +++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/vulkano/src/render_pass/macros.rs b/vulkano/src/render_pass/macros.rs index 3f5df810a1..c74ca6e78d 100644 --- a/vulkano/src/render_pass/macros.rs +++ b/vulkano/src/render_pass/macros.rs @@ -162,8 +162,38 @@ macro_rules! ordered_passes_renderpass { all_graphics: true, ..$crate::sync::PipelineStages::empty() }; - let src_access = src_stages.supported_access(); - let dst_access = dst_stages.supported_access(); + let src_access = $crate::sync::AccessFlags { + indirect_command_read: true, + index_read: true, + vertex_attribute_read: true, + uniform_read: true, + input_attachment_read: true, + shader_read: true, + shader_write: true, + color_attachment_read: true, + color_attachment_write: true, + depth_stencil_attachment_read: true, + depth_stencil_attachment_write: true, + memory_read: true, + memory_write: true, + ..$crate::sync::AccessFlags::empty() + }; + let dst_access = $crate::sync::AccessFlags { + indirect_command_read: true, + index_read: true, + vertex_attribute_read: true, + uniform_read: true, + input_attachment_read: true, + shader_read: true, + shader_write: true, + color_attachment_read: true, + color_attachment_write: true, + depth_stencil_attachment_read: true, + depth_stencil_attachment_write: true, + memory_read: true, + memory_write: true, + ..$crate::sync::AccessFlags::empty() + }; $crate::render_pass::SubpassDependency { src_subpass: id.into(),