From 7c34859bb66041130de76c7130e0199424fdfcba Mon Sep 17 00:00:00 2001 From: Soowan Park Date: Mon, 22 Apr 2019 17:53:28 -0400 Subject: [PATCH] Fix incorrect VkDescriptorPoolSize in negativeviewportheight. There is assertion fail in negativeviewportheight (AMD GPU). The example create two VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER for descriptorSet, but descriptorCount is one in descriptorPool. --- examples/negativeviewportheight/negativeviewportheight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/negativeviewportheight/negativeviewportheight.cpp b/examples/negativeviewportheight/negativeviewportheight.cpp index 19215272..1ebc2a3b 100644 --- a/examples/negativeviewportheight/negativeviewportheight.cpp +++ b/examples/negativeviewportheight/negativeviewportheight.cpp @@ -204,7 +204,7 @@ public: VkPipelineLayoutCreateInfo pipelineLayoutCI = vks::initializers::pipelineLayoutCreateInfo(&descriptorSetLayout, 1); VK_CHECK_RESULT(vkCreatePipelineLayout(device, &pipelineLayoutCI, nullptr, &pipelineLayout)); - VkDescriptorPoolSize poolSize = vks::initializers::descriptorPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1); + VkDescriptorPoolSize poolSize = vks::initializers::descriptorPoolSize(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 2); VkDescriptorPoolCreateInfo descriptorPoolCI = vks::initializers::descriptorPoolCreateInfo(1, &poolSize, 2); VK_CHECK_RESULT(vkCreateDescriptorPool(device, &descriptorPoolCI, nullptr, &descriptorPool));