Skip to content

Commit

Permalink
Remove exclusive access requirement for layout transition
Browse files Browse the repository at this point in the history
This allows us to render the same storage image more than
once. Related: vulkano-rs#1562
  • Loading branch information
fayalalebrun committed Oct 20, 2022
1 parent c17d346 commit a03cfa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulkano/src/command_buffer/synced/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a03cfa0

Please sign in to comment.