fix: ImGui font upload barriers — use correct sync2 access flags

0x2000 was VK_ACCESS_MEMORY_READ_BIT in Vulkan 1.0 but maps to
VK_ACCESS_2_HOST_READ_BIT in sync2. Replaced with 0x1000
(VK_ACCESS_2_TRANSFER_WRITE_BIT) for dst access on transfer layout.
This commit is contained in:
emil28092005
2026-06-19 08:54:54 +03:00
parent 9b80ab7881
commit f8384a8672
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -120,7 +120,7 @@ internal sealed unsafe class VulkanImGui : IDisposable
var cmd = BeginOneTimeCommands(); var cmd = BeginOneTimeCommands();
TransitionImageLayoutCmd(cmd, _fontImage, TransitionImageLayoutCmd(cmd, _fontImage,
VkImageLayout.Undefined, VkImageLayout.TransferDstOptimal, VkImageLayout.Undefined, VkImageLayout.TransferDstOptimal,
0, 0, 0x1000, 0x2000); 0, 0, 0x1000, 0x1000);
var region = new VkBufferImageCopyRegion var region = new VkBufferImageCopyRegion
{ {
@@ -141,7 +141,7 @@ internal sealed unsafe class VulkanImGui : IDisposable
TransitionImageLayoutCmd(cmd, _fontImage, TransitionImageLayoutCmd(cmd, _fontImage,
VkImageLayout.TransferDstOptimal, VkImageLayout.ShaderReadOnlyOptimal, VkImageLayout.TransferDstOptimal, VkImageLayout.ShaderReadOnlyOptimal,
0x1000, 0x2000, 0x8, 0x20); 0x1000, 0x1000, 0x8, 0x20);
EndOneTimeCommands(cmd); EndOneTimeCommands(cmd);