diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 26594e3..ae24dd3 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -738,8 +738,6 @@ typedef struct VulkanGraphicsPipeline { VkPipeline pipeline; VkDescriptorPool descriptorPool; - VulkanBuffer vertexUBO; - VulkanBuffer fragmentUBO; } VulkanGraphicsPipeline; /* Forward declarations */ @@ -2402,6 +2400,15 @@ static REFRESH_GraphicsPipeline* VULKAN_CreateGraphicsPipeline( SDL_stack_free(vertexSamplerLayoutBindings); SDL_stack_free(fragmentSamplerLayoutBindings); + if (!VULKAN_INTERNAL_CreateDescriptorPool( + renderer, + &pipelineCreateInfo->pipelineLayoutCreateInfo, + &graphicsPipeline->descriptorPool + )) { + REFRESH_LogError("Failed to create descriptor pool!"); + return NULL; + } + return (REFRESH_GraphicsPipeline*) graphicsPipeline; }