Commit 9e4c3f9
layersvt: Fix access mask in screenshot layer
This change fixes two access mask issues in screenshot layer:
1. The pipeline barrier which used to transition from present layout
for swapchain image should use VK_ACCESS_MEMORY_WRITE_BIT as
srcAccessMask to make sure all writes that are performed by entities
known to the Vulkan device are made available before read happens.
2. The pipeline barrier which used to transition a dest layout to
general layout should have dstAccessMask for CPU to read memory.1 parent a36d5fd commit 9e4c3f9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
| 761 | + | |
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| |||
0 commit comments