Fix various cases of image views with incorrect stencil aspect
This commit is contained in:
parent
397c2e6d9b
commit
9fef899e42
9 changed files with 27 additions and 9 deletions
|
|
@ -314,7 +314,9 @@ public:
|
|||
}
|
||||
if (usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)
|
||||
{
|
||||
aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||
if (format >= VK_FORMAT_D16_UNORM_S8_UINT)
|
||||
aspectMask |=VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
imageLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue