Skip to main content

Module simd

Module simd 

Source
Expand description

SIMD-accelerated hot paths for the rasterizer.

All SIMD code is gated behind #[cfg(target_arch = "x86_64")] and uses runtime feature detection (is_x86_feature_detected!) so the binary runs correctly on machines that lack the required extensions.

§Sub-modules

  • aa_coverage — per-pixel AA coverage counts (aa_coverage_span)
  • blend — solid-colour fill (blend_solid_rgb8, blend_solid_gray8)
  • composite — AA per-pixel blend (composite_aa_rgb8_opaque)
  • glyph_unpack — 1-bit-per-pixel mono glyph expansion (unpack_mono_row)

Re-exports§

pub use aa_coverage::aa_coverage_span;
pub use blend::blend_solid_gray8;
pub use blend::blend_solid_rgb8;
pub use composite::composite_aa_rgb8_opaque;
pub use glyph_unpack::unpack_mono_row;

Modules§

aa_coverage
Per-pixel AA coverage counts for AaBuf rows.
blend
SIMD-accelerated solid-colour fill paths.
composite
AA compositing: Porter-Duff source-over with per-pixel coverage.
glyph_unpack
Mono glyph bitmap unpacking — 1-bit-per-pixel MSB-first to one byte per pixel.