#[repr(i32)]pub enum LineRasterizationMode {
Default = 0,
Rectangular = 1,
Bresenham = 2,
RectangularSmooth = 3,
}
Available on crate feature
VK_KHR_line_rasterization
only.Expand description
Line rasterization modes
Variants§
Default = 0
Equivalent to LineRasterizationMode::Rectangular
if VkPhysicalDeviceLimits::strictLines
is true,
otherwise lines are drawn as non-strictLines
parallelograms.
Both of these modes are defined in Basic Line Segment Rasterization
Rectangular = 1
Lines drawn as if they were rectangles extruded from the line
Bresenham = 2
Lines drawn by determining which pixel diamonds the line intersects and exits, as defined in Bresenham Line Segment Rasterization
RectangularSmooth = 3
Lines drawn if they were rectangles extruded from the line, with alpha falloff, as defined in Smooth Lines
Trait Implementations§
Source§impl Clone for LineRasterizationMode
impl Clone for LineRasterizationMode
Source§fn clone(&self) -> LineRasterizationMode
fn clone(&self) -> LineRasterizationMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LineRasterizationMode
impl Debug for LineRasterizationMode
Source§impl Hash for LineRasterizationMode
impl Hash for LineRasterizationMode
Source§impl PartialEq for LineRasterizationMode
impl PartialEq for LineRasterizationMode
impl Copy for LineRasterizationMode
impl Eq for LineRasterizationMode
impl StructuralPartialEq for LineRasterizationMode
Auto Trait Implementations§
impl Freeze for LineRasterizationMode
impl RefUnwindSafe for LineRasterizationMode
impl Send for LineRasterizationMode
impl Sync for LineRasterizationMode
impl Unpin for LineRasterizationMode
impl UnwindSafe for LineRasterizationMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more