Corrected stage flag for push constant range, removed descriptor sets (not used in this example)

This commit is contained in:
saschawillems 2016-04-02 12:47:08 +02:00
parent 52ffbb59bb
commit 2517a2b82e
3 changed files with 10 additions and 63 deletions

View file

@ -600,7 +600,10 @@ VulkanExampleBase::~VulkanExampleBase()
{
// Clean up Vulkan resources
swapChain.cleanup();
vkDestroyDescriptorPool(device, descriptorPool, nullptr);
if (descriptorPool != VK_NULL_HANDLE)
{
vkDestroyDescriptorPool(device, descriptorPool, nullptr);
}
if (setupCmdBuffer != VK_NULL_HANDLE)
{
vkFreeCommandBuffers(device, cmdPool, 1, &setupCmdBuffer);

View file

@ -96,7 +96,7 @@ protected:
// Active frame buffer index
uint32_t currentBuffer = 0;
// Descriptor set pool
VkDescriptorPool descriptorPool;
VkDescriptorPool descriptorPool = VK_NULL_HANDLE;
// List of shader modules created (stored for cleanup)
std::vector<VkShaderModule> shaderModules;
// Pipeline cache object