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
|
|
@ -208,7 +208,9 @@ public:
|
|||
depthStencilView.format = fbDepthFormat;
|
||||
depthStencilView.flags = 0;
|
||||
depthStencilView.subresourceRange = {};
|
||||
depthStencilView.subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
depthStencilView.subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||
if (fbDepthFormat >= VK_FORMAT_D16_UNORM_S8_UINT)
|
||||
depthStencilView.subresourceRange.aspectMask |= VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||
depthStencilView.subresourceRange.baseMipLevel = 0;
|
||||
depthStencilView.subresourceRange.levelCount = 1;
|
||||
depthStencilView.subresourceRange.baseArrayLayer = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue