mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[dxvk] Fix load aspect mask in render pass creation
This commit is contained in:
parent
552b29ca0c
commit
1fd037cf29
@ -153,9 +153,9 @@ namespace dxvk {
|
|||||||
VkImageAspectFlags loadAspects = 0;
|
VkImageAspectFlags loadAspects = 0;
|
||||||
|
|
||||||
if (ops.depthOps.loadOpD == VK_ATTACHMENT_LOAD_OP_LOAD)
|
if (ops.depthOps.loadOpD == VK_ATTACHMENT_LOAD_OP_LOAD)
|
||||||
loadAspects = VK_IMAGE_ASPECT_DEPTH_BIT;
|
loadAspects |= VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||||
if (ops.depthOps.loadOpS == VK_ATTACHMENT_LOAD_OP_LOAD)
|
if (ops.depthOps.loadOpS == VK_ATTACHMENT_LOAD_OP_LOAD)
|
||||||
loadAspects = VK_IMAGE_ASPECT_STENCIL_BIT;
|
loadAspects |= VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||||
|
|
||||||
if (loadAspects & imageFormatInfo(m_format.depth.format)->aspectMask)
|
if (loadAspects & imageFormatInfo(m_format.depth.format)->aspectMask)
|
||||||
renderAccess |= VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;
|
renderAccess |= VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user