diff --git a/src/GraphicsPipeline.hs b/src/GraphicsPipeline.hs index 7b56129..13cbbeb 100644 --- a/src/GraphicsPipeline.hs +++ b/src/GraphicsPipeline.hs @@ -106,7 +106,7 @@ createRenderPass , Vk.dstSubpass = 0 , Vk.srcStageMask = Vk.PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT , Vk.dstStageMask = Vk.PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT - , Vk.srcAccessMask = bit 0 + , Vk.srcAccessMask = Vk.ACCESS_MEMORY_READ_BIT , Vk.dstAccessMask = Vk.ACCESS_COLOR_ATTACHMENT_WRITE_BIT } subpassDepthDependency = Vk.zero @@ -114,7 +114,7 @@ createRenderPass , Vk.dstSubpass = 0 , Vk.srcStageMask = Vk.PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT .|. Vk.PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT - , Vk.srcAccessMask = bit 0 + , Vk.srcAccessMask = Vk.ACCESS_MEMORY_READ_BIT , Vk.dstStageMask = Vk.PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT .|. Vk.PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT , Vk.dstAccessMask = Vk.ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT