pub struct ScalarOps;Expand description
Portable scalar backend. This is the reference implementation used by host tests; it is also correct on any architecture.
Trait Implementations§
impl Copy for ScalarOps
Source§impl PixelOps for ScalarOps
impl PixelOps for ScalarOps
Source§type Guard = NoGuard
type Guard = NoGuard
RAII state saved around a drawing call (FPU/SSE registers in the
kernel, nothing on the host).
Source§fn guard(&self) -> NoGuard
fn guard(&self) -> NoGuard
Acquire the guard. Kept separate from the operations so the compiler
can drop it at the end of the drawing call.
Source§unsafe fn blend(&self, dst: *mut u32, src: *const u32, alpha: u8, count: usize)
unsafe fn blend(&self, dst: *mut u32, src: *const u32, alpha: u8, count: usize)
Blend
src over dst with a constant alpha (0 = keep dst,
255 = take src), channel by channel including the top byte. Read moreAuto Trait Implementations§
impl Forget for ScalarOps
impl Freeze for ScalarOps
impl Move for ScalarOps
impl RefUnwindSafe for ScalarOps
impl Send for ScalarOps
impl Sync for ScalarOps
impl Unpin for ScalarOps
impl UnsafeUnpin for ScalarOps
impl UnwindSafe for ScalarOps
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