Corrected stage flag for push constant range, removed descriptor sets (not used in this example)
This commit is contained in:
parent
52ffbb59bb
commit
2517a2b82e
3 changed files with 10 additions and 63 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue