VulkanRenderer: Fix VkRenderWindow subpass dependencies
This commit is contained in:
parent
10aa7231b6
commit
bfb93bc925
|
|
@ -434,7 +434,6 @@ namespace Nz
|
|||
};
|
||||
|
||||
std::vector<RenderPass::SubpassDependency> subpassDependencies = {
|
||||
{
|
||||
{
|
||||
RenderPass::ExternalSubpassIndex,
|
||||
PipelineStage::ColorOutput,
|
||||
|
|
@ -445,18 +444,6 @@ namespace Nz
|
|||
MemoryAccess::ColorWrite,
|
||||
|
||||
true //< tilable
|
||||
},
|
||||
{
|
||||
0,
|
||||
PipelineStage::ColorOutput,
|
||||
MemoryAccess::ColorWrite,
|
||||
|
||||
RenderPass::ExternalSubpassIndex,
|
||||
PipelineStage::BottomOfPipe,
|
||||
MemoryAccess::MemoryRead,
|
||||
|
||||
true //< tilable
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -483,6 +470,11 @@ namespace Nz
|
|||
1,
|
||||
TextureLayout::DepthStencilReadWrite
|
||||
};
|
||||
|
||||
auto& subpassDependency = subpassDependencies.front();
|
||||
subpassDependency.fromStages |= PipelineStage::FragmentTestsEarly;
|
||||
subpassDependency.toStages |= PipelineStage::FragmentTestsEarly;
|
||||
subpassDependency.toAccessFlags |= MemoryAccess::DepthStencilWrite;
|
||||
}
|
||||
|
||||
m_renderPass.emplace(*m_device, std::move(attachments), std::move(subpasses), std::move(subpassDependencies));
|
||||
|
|
|
|||
Loading…
Reference in New Issue