Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line Rendering example #922

Open
lobneroO opened this issue Feb 20, 2024 · 2 comments
Open

Line Rendering example #922

lobneroO opened this issue Feb 20, 2024 · 2 comments
Labels
sample request Request for a new sample

Comments

@lobneroO
Copy link
Contributor

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.

@SaschaWillems SaschaWillems added the sample request Request for a new sample label Feb 20, 2024
@SaschaWillems
Copy link
Collaborator

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.

@lobneroO
Copy link
Contributor Author

lobneroO commented Apr 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample request Request for a new sample
Projects
None yet
Development

No branches or pull requests

2 participants