create descriptor pool on pipeline

submit_rewrite
cosmonaut 2020-12-18 20:17:50 -08:00
parent 4202ad8e56
commit d193327760
1 changed files with 9 additions and 2 deletions

View File

@ -738,8 +738,6 @@ typedef struct VulkanGraphicsPipeline
{ {
VkPipeline pipeline; VkPipeline pipeline;
VkDescriptorPool descriptorPool; VkDescriptorPool descriptorPool;
VulkanBuffer vertexUBO;
VulkanBuffer fragmentUBO;
} VulkanGraphicsPipeline; } VulkanGraphicsPipeline;
/* Forward declarations */ /* Forward declarations */
@ -2402,6 +2400,15 @@ static REFRESH_GraphicsPipeline* VULKAN_CreateGraphicsPipeline(
SDL_stack_free(vertexSamplerLayoutBindings); SDL_stack_free(vertexSamplerLayoutBindings);
SDL_stack_free(fragmentSamplerLayoutBindings); 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; return (REFRESH_GraphicsPipeline*) graphicsPipeline;
} }