diff options
author | dan sinclair <dj2@everburning.com> | 2019-04-02 09:02:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 09:02:11 -0400 |
commit | a80dbbd3b1233b274ee2e5bdec8f30e1e8ea73f7 (patch) | |
tree | 70849151cd3745498817e1b242f111bf29611ea3 /src | |
parent | 80265dbe23250d8dedaac4c5e1ebc0c8e33addfc (diff) | |
download | amber-a80dbbd3b1233b274ee2e5bdec8f30e1e8ea73f7.tar.gz |
[vulkan] Use LOAD_OP_LOAD for the default attachment description (#438)
This CL changes the default attachment description from
LOAD_OP_DONT_CARE to LOAD_OP_LOAD. We want image data in the framebuffer
to persist over render calls.
Fixes #436
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/graphics_pipeline.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vulkan/graphics_pipeline.cc b/src/vulkan/graphics_pipeline.cc index b3176bb..ab1c046 100644 --- a/src/vulkan/graphics_pipeline.cc +++ b/src/vulkan/graphics_pipeline.cc @@ -27,11 +27,10 @@ namespace vulkan { namespace { const VkAttachmentDescription kDefaultAttachmentDesc = { - 0, /* flags */ - VK_FORMAT_UNDEFINED, /* format */ - VK_SAMPLE_COUNT_1_BIT, /* samples */ - // TODO(jaebaek): Set up proper loadOp, StoreOp. - VK_ATTACHMENT_LOAD_OP_DONT_CARE, /* loadOp */ + 0, /* flags */ + VK_FORMAT_UNDEFINED, /* format */ + VK_SAMPLE_COUNT_1_BIT, /* samples */ + VK_ATTACHMENT_LOAD_OP_LOAD, /* loadOp */ VK_ATTACHMENT_STORE_OP_STORE, /* storeOp */ VK_ATTACHMENT_LOAD_OP_LOAD, /* stencilLoadOp */ VK_ATTACHMENT_STORE_OP_STORE, /* stencilStoreOp */ |