Fix #146559: Vulkan: Wide lines not working in custom PyGPU shaders

For wide line rendering it is preferred to use polyline shaders. However
creating a custom shader is complicated and a stone to far for many
scriptors.

This PR allows using line_width_set when wide line rendering is
supported by the platform.

Pull Request: https://projects.blender.org/blender/blender/pulls/146762
This commit is contained in:
Jeroen Bakker
2025-09-25 14:02:11 +02:00
parent ca2a13991e
commit 1a0a35ac93
20 changed files with 201 additions and 127 deletions

View File

@@ -487,6 +487,7 @@ struct GHOST_InstanceVK {
device_features.drawIndirectFirstInstance = VK_TRUE;
device_features.fragmentStoresAndAtomics = VK_TRUE;
device_features.samplerAnisotropy = device.features.features.samplerAnisotropy;
device_features.wideLines = device.features.features.wideLines;
VkDeviceCreateInfo device_create_info = {};
device_create_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;