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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user