Line Rendering example
While ultimately not as hard as I thought, I struggled a bit to get line rendering going at first. I got a bit of support with the folks at Vulkan-Hpp, and they suggested opening a ticket here.
I think it would be helpful to have an example about how to do line rendering in Vulkan. This is useful for data visualization, but also (as in my case) for debugging.
We now do have a line rendering sample, see https://github.com/KhronosGroup/Vulkan-Samples/tree/main/samples/extensions/dynamic_line_rasterization
Please check it out.
I have seen that, thanks, but what I was looking for was an actual use of VK_PRIMITIVE_TOPOLOGY_LINE_*. I got it working now, but some of the parameters are(/were) not clear. E.g. rasterization: there is a VkPipelineRasterizationLineStateCreateInfoEXT which I had been looking to use but apperantly it is not really necessary. The polygonMode and frontFace for the rasterization create info also seems to not make sense. It's just a bit harder to see what is necessary, what isn't and if you have to do something specific.