From 47ce44e5f0b0aa4b985fd6f505b1619ca5ced10d Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 2 Mar 2019 17:20:14 +0100 Subject: [PATCH] - add missing image usage flag --- src/rendering/vulkan/renderer/vk_renderpass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/vulkan/renderer/vk_renderpass.cpp b/src/rendering/vulkan/renderer/vk_renderpass.cpp index 52c846ecbe..92425d5175 100644 --- a/src/rendering/vulkan/renderer/vk_renderpass.cpp +++ b/src/rendering/vulkan/renderer/vk_renderpass.cpp @@ -37,7 +37,7 @@ void VkRenderPassManager::BeginFrame() ImageBuilder builder; builder.setSize(SCREENWIDTH, SCREENHEIGHT); builder.setFormat(VK_FORMAT_R16G16B16A16_SFLOAT); - builder.setUsage(VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT); + builder.setUsage(VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT); SceneColor = builder.create(fb->device); builder.setFormat(VK_FORMAT_D24_UNORM_S8_UINT);