Click or drag to resize
Ab4d.SharpEngine logo

LineRasterizationModes Enumeration

LineRasterizationModes enum defines possible line rasterization modes (specify line rendering technique).

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public enum LineRasterizationModes
Members
Member nameValueDescription
VulkanSinglePixelWideLines0 VulkanSinglePixelWideLines mode uses simple Vulkan rasterization mode that can render only lines with single pixel wide lines.
GeometryShader1 GeometryShader mode uses geometry shader to generate the geometry of the line. This is the recommended mode because it can render the most line types: thick (wide) lines, poly-lines, lines with stipples, lines with different start and end colors.
VulkanRectangular2 VulkanRectangular uses Vulkan line rasterization that creates a rectangle for each line. Before this mode can be used, the engine must be initialized by setting EngineCreateOptions.EnableVulkanLineRasterization to true. See more: https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#primsrast-lines-basic
VulkanBresenham3 VulkanRectangular uses Vulkan line rasterization that creates lines without anti-aliasing. Before this mode can be used, the engine must be initialized by setting EngineCreateOptions.EnableVulkanLineRasterization to true. See more: https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#primsrast-lines-basic
VulkanRectangularSmooth4 VulkanRectangular uses Vulkan line rasterization that creates a rectangle for each line and provides smooth line edges. Before this mode can be used, the engine must be initialized by setting EngineCreateOptions.EnableVulkanLineRasterization to true. See more: https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#primsrast-lines-basic
See Also