KhronosGroup / MoltenVK

MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
Apache License 2.0
4.76k stars 420 forks source link

VK_EXT_line_rasterization support #1516

Open helynranta opened 2 years ago

helynranta commented 2 years ago

Hello!

Is there any possibility to get support for VK_EXT_line_rasterization in the future? I don't know if there is anything similar in Metal.

billhollings commented 2 years ago

Native line rendering in Metal is incredibly primitive (excuse the pun).

What features of VK_EXT_line_rasterization are you looking for? Stippling? Coverage options (Bresenham, Smooth, etc)?

helynranta commented 2 years ago

I was hopina if it was possible to have VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT implemented. But I understand if this is not really a priority, there must be more important extensions 😅

I also find this very funny in specs:

The details of the rasterization rules and area calculation are left intentionally vague, to allow implementations to generate coverage and values that are aesthetically pleasing.