pub struct KernelOps {
inner: FramebufferOps,
}Expand description
Pixel backend backed by the kernel’s FramebufferOps function table.
The FPU guard is created inside the trait, so a caller cannot forget it:
every fbsurface drawing call passes through PixelOps::guard before
touching a pixel.
Fields§
§inner: FramebufferOpsImplementations§
Source§impl KernelOps
impl KernelOps
pub const fn new(inner: FramebufferOps) -> Self
pub const fn inner(&self) -> FramebufferOps
Trait Implementations§
impl Copy for KernelOps
Source§impl PixelOps for KernelOps
impl PixelOps for KernelOps
Source§type Guard = FpuGuard
type Guard = FpuGuard
RAII state saved around a drawing call (FPU/SSE registers in the
kernel, nothing on the host).
Source§fn guard(&self) -> FpuGuard
fn guard(&self) -> FpuGuard
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 KernelOps
impl Freeze for KernelOps
impl Move for KernelOps
impl RefUnwindSafe for KernelOps
impl Send for KernelOps
impl Sync for KernelOps
impl Unpin for KernelOps
impl UnsafeUnpin for KernelOps
impl UnwindSafe for KernelOps
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
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<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> ⓘ
Converts
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> ⓘ
Converts
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 more