From f9054ffdf415c0d3dad5397f185d077931de56d6 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 28 Apr 2021 16:30:17 +0100 Subject: [PATCH] Create image view on depth/stencil in test to simplify behaviour --- util/test/demos/vk/vk_pixel_history.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/test/demos/vk/vk_pixel_history.cpp b/util/test/demos/vk/vk_pixel_history.cpp index 89516dcc2..6d0b976ca 100644 --- a/util/test/demos/vk/vk_pixel_history.cpp +++ b/util/test/demos/vk/vk_pixel_history.cpp @@ -496,7 +496,8 @@ void main() VkImageView msdepthview = createImageView(vkh::ImageViewCreateInfo( msimgdepth.image, VK_IMAGE_VIEW_TYPE_2D, depthStencilFormat, {}, - vkh::ImageSubresourceRange(VK_IMAGE_ASPECT_DEPTH_BIT, 0, 1, 2, 1))); + vkh::ImageSubresourceRange(VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT, 0, 1, 2, + 1))); VkFramebuffer submsfb = createFramebuffer(vkh::FramebufferCreateInfo( submsrp, {submsview, msdepthview},