From a03cfa0ef593a2003c86cfdebd752170aba40a73 Mon Sep 17 00:00:00 2001 From: Francisco Ayala Le Brun Date: Thu, 20 Oct 2022 14:00:46 +0200 Subject: [PATCH] Remove exclusive access requirement for layout transition This allows us to render the same storage image more than once. Related: https://github.com/vulkano-rs/vulkano/pull/1562 --- vulkano/src/command_buffer/synced/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vulkano/src/command_buffer/synced/builder.rs b/vulkano/src/command_buffer/synced/builder.rs index 8111c8689e..31efbde73d 100644 --- a/vulkano/src/command_buffer/synced/builder.rs +++ b/vulkano/src/command_buffer/synced/builder.rs @@ -620,8 +620,8 @@ impl SyncCommandBufferBuilder { // A layout transition is a write, so if we perform one, we // need exclusive access. - state.memory.exclusive = true; // TODO: is this correct? - state.exclusive_any = true; + // state.memory.exclusive = true; // TODO: is this correct? + // state.exclusive_any = true; // Note that we transition from `bottom_of_pipe`, which // means that we wait for all the previous commands to be