Closed kg closed 7 months ago
I believe this change is covered by ResolveTarget, but would have to check locally... AFAIK this is good
For context, this PR makes this set of validator errors go away:
https://github.com/FNA-XNA/FNA3D/blob/master/src/FNA3D_Driver_Vulkan.c#L5328
The real bug is that the rtView contains every mip level when it should only contain level 0. Probably also true for the layers as well.
This is the wrong fix, I think @thatcosmonaut is on it though
When preparing to render to a mipmapped render target, we need to transition all of its mip levels into color attachment state (they would otherwise be in read only state) in order to satisfy the vulkan validation layer.