Corrected image layout and descriptor set handling in RayTracing sample. (#460)

This commit is contained in:
Andreas Süßenbach
2019-12-19 13:59:48 +01:00
committed by Markus Tavenrath
parent 7da1c8baf0
commit 0280efc78c
2 changed files with 34 additions and 21 deletions

View File

@@ -517,6 +517,7 @@ namespace vk
destinationAccessMask = vk::AccessFlagBits::eDepthStencilAttachmentRead | vk::AccessFlagBits::eDepthStencilAttachmentWrite;
break;
case vk::ImageLayout::eGeneral: // empty destinationAccessMask
case vk::ImageLayout::ePresentSrcKHR:
break;
case vk::ImageLayout::eShaderReadOnlyOptimal:
destinationAccessMask = vk::AccessFlagBits::eShaderRead;
@@ -544,6 +545,9 @@ namespace vk
case vk::ImageLayout::eGeneral:
destinationStage = vk::PipelineStageFlagBits::eHost;
break;
case vk::ImageLayout::ePresentSrcKHR:
destinationStage = vk::PipelineStageFlagBits::eBottomOfPipe;
break;
case vk::ImageLayout::eShaderReadOnlyOptimal:
destinationStage = vk::PipelineStageFlagBits::eFragmentShader;
break;