more fixesx
This commit is contained in:
parent
12aeecd99b
commit
fbcb0e8a4a
3
vulkan.d
3
vulkan.d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user