From 132b4006d5bd8b34043e8ddec2720e8f935ef852 Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Tue, 7 Mar 2017 16:06:55 -0700 Subject: layers: Set depth to 1 in ci for swapchain images Change-Id: I64e99f99737e26e284722bcc0ce3dc9518e64438 --- layers/core_validation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index b06dd99c..2f435e94 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -10609,6 +10609,7 @@ VKAPI_ATTR VkResult VKAPI_CALL GetSwapchainImagesKHR(VkDevice device, VkSwapchai image_ci.format = swapchain_node->createInfo.imageFormat; image_ci.extent.width = swapchain_node->createInfo.imageExtent.width; image_ci.extent.height = swapchain_node->createInfo.imageExtent.height; + image_ci.extent.depth = 1; image_ci.mipLevels = 1; image_ci.arrayLayers = swapchain_node->createInfo.imageArrayLayers; image_ci.samples = VK_SAMPLE_COUNT_1_BIT; -- cgit v1.2.3