summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-03-14 15:53:44 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-03-14 15:53:44 +0100
commit6b59c2bb4fe3efe4c68df33484dbee5d4e5de61b (patch)
treeefe90a3a3c7d5df1e09de55ed13809d594f64514
parent0e801a970afc21b5e8c5421211cb42d29f5c1d47 (diff)
don't store MS suf image
-rw-r--r--src/vkvg_device_internal.c14
1 files 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