Skip to content

Commit

Permalink
Migrate to new KHR_synchronization2 (core in 1.3) barriers. (#670)
Browse files Browse the repository at this point in the history
* Migrate to new KHR_synchronization2 (core in 1.3) barriers.

* More barriers improvements and use vkQueueSubmit2

* FIX layout during resolve, need to be set to COPY_DST so we don't have to workaround Vulkan side.

* Complete total VK_KHR_synchronization2 migration.

* Use VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT instead of VK_PIPELINE_STAGE_2_TRANSFER_BIT for memory barriers.
  • Loading branch information
amerkoleci committed Apr 26, 2023
1 parent 44df426 commit bde4e61
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 252 deletions.
2 changes: 2 additions & 0 deletions WickedEngine/wiGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ namespace wi::graphics
image.type = Type::RESOLVE;
image.texture = resource;
image.layout_before = layout_before;
image.layout = ResourceState::COPY_DST;
image.layout_after = layout_after;
image.subresource = subresource_SRV;
return image;
Expand All @@ -903,6 +904,7 @@ namespace wi::graphics
image.type = Type::RESOLVE_DEPTH;
image.texture = resource;
image.layout_before = layout_before;
image.layout = ResourceState::COPY_DST;
image.layout_after = layout_after;
image.subresource = subresource_SRV;
image.depth_resolve_mode = depth_resolve_mode;
Expand Down
Loading

0 comments on commit bde4e61

Please sign in to comment.