fix shader layout
This commit is contained in:
parent
4641a17bab
commit
2e70b97acf
6
vulkan.d
6
vulkan.d
@ -1093,7 +1093,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 || usage == IU.Depth)
|
||||
if(usage == IU.Draw || usage == IU.Depth || usage == IU.Convert)
|
||||
{
|
||||
view.shader_layout = IL.General;
|
||||
}
|
||||
@ -1101,10 +1101,6 @@ CreateImageView(Vulkan* vk, ImageView* view, u32 w, u32 h, Format format, ImageU
|
||||
{
|
||||
view.shader_layout = IL.ReadOnly;
|
||||
}
|
||||
else if(usage == IU.Convert)
|
||||
{
|
||||
view.shader_layout = IL.TransferDst;
|
||||
}
|
||||
else assert(false, "Unimplemented usage");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user