#[non_exhaustive]pub enum StrokeRaster {
Native,
Emulated,
Quads,
}Expand description
How 1-pixel lines and points (custom/main waves, shape outlines, motion vectors) are rasterised.
projectM draws GL_LINES/GL_LINE_STRIP/GL_LINE_LOOP/GL_POINTS, non-antialiased (GL_LINE_SMOOTH has no
effect on Mesa). The GPU’s own line rule (diamond exit) decides every stroke pixel, so the choice below only
matters for pixel-exactness.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Native
wgpu LineList / PointList primitives (1 px): fastest, but the rule is the driver’s and can differ
from projectM’s GL rules for many stroke pixels.
Emulated
Exact CPU emulation of projectM’s GL rules (strip / diamond exit / point floor), every lit pixel drawn as a 1-px point at its centre: identical on every GPU.
Quads
Thin quads (one pixel wide band covering the major axis extent): the D3D9 look MilkDrop 2 had.
Compat::MilkDrop2 always draws strokes this way, whatever the configured mode.
Trait Implementations§
Source§impl Clone for StrokeRaster
impl Clone for StrokeRaster
impl Copy for StrokeRaster
Source§impl Debug for StrokeRaster
impl Debug for StrokeRaster
Source§impl Default for StrokeRaster
impl Default for StrokeRaster
impl Eq for StrokeRaster
Source§impl Hash for StrokeRaster
impl Hash for StrokeRaster
Source§impl PartialEq for StrokeRaster
impl PartialEq for StrokeRaster
impl StructuralPartialEq for StrokeRaster
Auto Trait Implementations§
impl Freeze for StrokeRaster
impl RefUnwindSafe for StrokeRaster
impl Send for StrokeRaster
impl Sync for StrokeRaster
impl Unpin for StrokeRaster
impl UnsafeUnpin for StrokeRaster
impl UnwindSafe for StrokeRaster
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.