fix: replace all 0x2000 with 0x1000 in capture barriers

0x2000 = VK_ACCESS_2_HOST_READ_BIT (wrong for GPU transfer)
0x1000 = VK_ACCESS_2_TRANSFER_WRITE_BIT (correct for copy operations)
This commit is contained in:
emil28092005
2026-06-19 08:56:25 +03:00
parent f8384a8672
commit d7b6851217
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -110,7 +110,7 @@ public sealed unsafe class VulkanRenderer : IRenderer, Engine.Graphics.IScreensh
// Transition: ColorAttachmentOptimal → TransferSrcOptimal
TransitionImageLayout(cmd, _swapchain.Images[imageIndex],
VkImageLayout.ColorAttachmentOptimal, VkImageLayout.TransferSrcOptimal,
0x400, 0x100, 0x10000, 0x2000);
0x400, 0x100, 0x10000, 0x1000);
// Copy image to buffer
var region = new VkBufferImageCopyRegion
@@ -135,7 +135,7 @@ public sealed unsafe class VulkanRenderer : IRenderer, Engine.Graphics.IScreensh
// Transition back: TransferSrcOptimal → ColorAttachmentOptimal
TransitionImageLayout(cmd, _swapchain.Images[imageIndex],
VkImageLayout.TransferSrcOptimal, VkImageLayout.ColorAttachmentOptimal,
0x10000, 0x2000, 0x400, 0x100);
0x10000, 0x1000, 0x400, 0x100);
return null; // Data will be read next frame after GPU completes
}