Update ZVulkan to support graphics pipeline libraries

This commit is contained in:
dpjudas 2025-04-05 03:08:03 +02:00
commit 340a98950f
5 changed files with 81 additions and 18 deletions

View file

@ -141,6 +141,11 @@ void VulkanDevice::CreateDevice()
*next = &EnabledFeatures.Fault;
next = &EnabledFeatures.Fault.pNext;
}
if (SupportsExtension(VK_EXT_GRAPHICS_PIPELINE_LIBRARY_EXTENSION_NAME))
{
*next = &EnabledFeatures.GraphicsPipelineLibrary;
next = &EnabledFeatures.GraphicsPipelineLibrary.pNext;
}
VkResult result = vkCreateDevice(PhysicalDevice.Device, &deviceCreateInfo, nullptr, &device);
CheckVulkanError(result, "Could not create vulkan device");