more fixesx

This commit is contained in:
Matthew 2025-11-15 19:38:23 +11:00
parent 12aeecd99b
commit fbcb0e8a4a

View File

@ -1089,7 +1089,7 @@ CreateImageView(Vulkan* vk, ImageView* view, u32 w, u32 h, Format format, ImageU
view.depth_image = usage == IU.Depth;
view.usage = usage;
if(usage == IU.Draw)
if(usage == IU.Draw || usage == UI.Depth)
{
view.shader_layout = ImageLayout.General;
}
@ -1292,7 +1292,6 @@ TransferReady(Vulkan* vk)
pragma(inline): bool
Transfer(Vulkan* vk, ImageView* view, u8[] data, u32 w, u32 h)
{
view.layout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
return Transfer(vk, &view.base, data, w, h);
}