LiteFX::Rendering::Backends::VulkanRasterizer::updateLineWidth¶
Sets the line width on the rasterizer.
Synopsis¶
Declared in <litefx/backends/vulkan.hpp>
[[dllimport, dllexport]] void updateLineWidth(Float lineWidth) noexcept;
Description¶
Note that updating the line width requires the "wide lines" feature to be available. If it is not, the line width must be 1.0. This constraint is not enforced by the engine and you are responsible of making sure that it is fulfilled.
Furthermore, note that the DirectX 12 back-end does have any representation for the line width concept. Thus you should only use the line width, if you plan to only support Vulkan.
Return Value¶
A reference to the line width.
Parameters¶
| Name | Description |
|---|---|
| lineWidth | A type for a floating point value with single precision. |
See Also¶
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#features-wideLines