Vulkan-Samples icon indicating copy to clipboard operation
Vulkan-Samples copied to clipboard

Line Rendering example

Open lobneroO opened this issue 1 year ago • 2 comments

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.

lobneroO avatar Feb 20 '24 07:02 lobneroO

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.

SaschaWillems avatar Apr 08 '24 17:04 SaschaWillems

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.

lobneroO avatar Apr 09 '24 07:04 lobneroO