mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 02:31:48 +00:00
Removed unnecessary VkSubpassDependency.
This commit is contained in:
parent
283207beb0
commit
14137d11bc
Binary file not shown.
@ -890,23 +890,12 @@ static void CreateSwapchain()
|
|||||||
subpassDesc.pColorAttachments = &colorAttachmentRef;
|
subpassDesc.pColorAttachments = &colorAttachmentRef;
|
||||||
subpassDesc.pDepthStencilAttachment = &depthStencilAttachmentRef;
|
subpassDesc.pDepthStencilAttachment = &depthStencilAttachmentRef;
|
||||||
|
|
||||||
VkSubpassDependency subpassDependency = {};
|
|
||||||
subpassDependency.srcSubpass = VK_SUBPASS_EXTERNAL;
|
|
||||||
subpassDependency.dstSubpass = 0;
|
|
||||||
subpassDependency.srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
|
|
||||||
subpassDependency.dstStageMask = VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT;
|
|
||||||
subpassDependency.srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT |
|
|
||||||
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;
|
|
||||||
subpassDependency.dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT |
|
|
||||||
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;
|
|
||||||
|
|
||||||
VkRenderPassCreateInfo renderPassInfo = { VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO };
|
VkRenderPassCreateInfo renderPassInfo = { VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO };
|
||||||
renderPassInfo.attachmentCount = (uint32_t)_countof(attachments);
|
renderPassInfo.attachmentCount = (uint32_t)_countof(attachments);
|
||||||
renderPassInfo.pAttachments = attachments;
|
renderPassInfo.pAttachments = attachments;
|
||||||
renderPassInfo.subpassCount = 1;
|
renderPassInfo.subpassCount = 1;
|
||||||
renderPassInfo.pSubpasses = &subpassDesc;
|
renderPassInfo.pSubpasses = &subpassDesc;
|
||||||
renderPassInfo.dependencyCount = 1;
|
renderPassInfo.dependencyCount = 0;
|
||||||
renderPassInfo.pDependencies = &subpassDependency;
|
|
||||||
ERR_GUARD_VULKAN( vkCreateRenderPass(g_hDevice, &renderPassInfo, nullptr, &g_hRenderPass) );
|
ERR_GUARD_VULKAN( vkCreateRenderPass(g_hDevice, &renderPassInfo, nullptr, &g_hRenderPass) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user