Destroy shader modules after graphics pipeline has been created (Refs #277)

This commit is contained in:
saschawillems 2017-02-04 14:12:57 +01:00
parent 72af67420d
commit 5f797ec2cb

View file

@ -997,6 +997,10 @@ public:
// Create rendering pipeline using the specified states
VK_CHECK_RESULT(vkCreateGraphicsPipelines(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipeline));
// Shader modules are no longer needed once the graphics pipeline has been created
vkDestroyShaderModule(device, shaderStages[0].module, nullptr);
vkDestroyShaderModule(device, shaderStages[1].module, nullptr);
}
void prepareUniformBuffers()