From 6b59c2bb4fe3efe4c68df33484dbee5d4e5de61b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 14 Mar 2022 15:53:44 +0100 Subject: [PATCH] don't store MS suf image --- src/vkvg_device_internal.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vkvg_device_internal.c b/src/vkvg_device_internal.c index 8494731..291ae93 100644 --- a/src/vkvg_device_internal.c +++ b/src/vkvg_device_internal.c @@ -131,7 +131,7 @@ VkRenderPass _device_createRenderPassMS(VkvgDevice dev, VkAttachmentLoadOp loadO .format = FB_COLOR_FORMAT, .samples = dev->samples, .loadOp = loadOp, - .storeOp = VK_ATTACHMENT_STORE_OP_STORE, + .storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, .stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE, .stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE, .initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL, @@ -269,16 +269,16 @@ void _device_setupPipelines(VkvgDevice dev) .inputRate = VK_VERTEX_INPUT_RATE_VERTEX }; VkVertexInputAttributeDescription vertexInputAttributs[3] = { - {0, 0, VK_FORMAT_R32G32_SFLOAT, 0}, - {1, 0, VK_FORMAT_R8G8B8A8_UNORM, 8}, + {0, 0, VK_FORMAT_R32G32_SFLOAT, 0}, + {1, 0, VK_FORMAT_R8G8B8A8_UNORM, 8}, {2, 0, VK_FORMAT_R32G32B32_SFLOAT, 12} }; VkPipelineVertexInputStateCreateInfo vertexInputState = { .sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO, - .vertexBindingDescriptionCount = 1, - .pVertexBindingDescriptions = &vertexInputBinding, - .vertexAttributeDescriptionCount = 3, - .pVertexAttributeDescriptions = vertexInputAttributs }; + .vertexBindingDescriptionCount = 1, + .pVertexBindingDescriptions = &vertexInputBinding, + .vertexAttributeDescriptionCount= 3, + .pVertexAttributeDescriptions = vertexInputAttributs }; #ifdef VKVG_WIRED_DEBUG VkShaderModule modVert, modFrag, modFragWired; #else -- 2.47.3