From d1933277604271ce9547b09886a0ea2d3c45dc0d Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 18 Dec 2020 20:17:50 -0800 Subject: [PATCH] create descriptor pool on pipeline --- src/Refresh_Driver_Vulkan.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; }