vulkan: fix canvas rendering (on android)

Before this patch, sometimes rendering a texture
on an android device would result in random things
appearing in the canvas, apart from the stuff
that has been drawn properly.
With these changes this does not seem to appear anymore.
This commit is contained in:
niki
2022-08-29 17:43:54 +02:00
parent 4047cc9d3a
commit d123021e26
5 changed files with 75 additions and 29 deletions
+1
View File
@@ -27,6 +27,7 @@ struct RenderPassConfiguration {
std::vector<VkFormat> colorFormats;
struct StaticRenderPassConfiguration {
VkImageLayout initialColorImageLayout = VK_IMAGE_LAYOUT_UNDEFINED;
VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT;
VkFormat depthFormat = VK_FORMAT_UNDEFINED;
bool resolve = false;