pub enum RasterQuality {
Quality,
Speed,
}Expand description
Rasterization precision / speed trade-off for the vello_cpu pipeline.
vello_cpu ships two compositing pipelines: a higher-precision f32 pipeline
and a faster u8 pipeline. Both are compiled in; this selects which one a
given render uses.
The default is RasterQuality::Quality (the f32 pipeline), which keeps
output byte-identical to historical PDFluent releases. RasterQuality::Speed
is an explicit, caller-controlled opt-in: on content-heavy pages it renders
~1.4–1.6× faster, at the cost of sub-perceptual rounding differences wherever
alpha blending, anti-aliasing or images compose (8-bit vs f32 compositing
precision). Pages built only from opaque vector fills are byte-identical in
both modes.
Variants§
Quality
Higher-precision f32 compositing pipeline. Default; matches historical
output byte-for-byte.
Speed
Faster u8 compositing pipeline (~1.4–1.6× on content-heavy pages).
Opt-in; output differs from RasterQuality::Quality by sub-perceptual
rounding where blending/AA/images compose.
Trait Implementations§
Source§impl Clone for RasterQuality
impl Clone for RasterQuality
Source§fn clone(&self) -> RasterQuality
fn clone(&self) -> RasterQuality
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RasterQuality
impl Debug for RasterQuality
Source§impl Default for RasterQuality
impl Default for RasterQuality
Source§fn default() -> RasterQuality
fn default() -> RasterQuality
Source§impl PartialEq for RasterQuality
impl PartialEq for RasterQuality
Source§fn eq(&self, other: &RasterQuality) -> bool
fn eq(&self, other: &RasterQuality) -> bool
self and other values to be equal, and is used by ==.impl Copy for RasterQuality
impl Eq for RasterQuality
impl StructuralPartialEq for RasterQuality
Auto Trait Implementations§
impl Freeze for RasterQuality
impl RefUnwindSafe for RasterQuality
impl Send for RasterQuality
impl Sync for RasterQuality
impl Unpin for RasterQuality
impl UnsafeUnpin for RasterQuality
impl UnwindSafe for RasterQuality
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().