pub struct GlowEffect { /* private fields */ }Expand description
Example custom glow effect
Implementations§
Trait Implementations§
Source§impl EffectPlugin for GlowEffect
impl EffectPlugin for GlowEffect
Source§fn apply_cpu(
&self,
pixels: &mut [u8],
width: u32,
height: u32,
params: &EffectParams,
) -> Result<(), RenderError>
fn apply_cpu( &self, pixels: &mut [u8], width: u32, height: u32, params: &EffectParams, ) -> Result<(), RenderError>
Apply effect to pixel data
Source§fn shader_code(&self) -> Option<&str>
fn shader_code(&self) -> Option<&str>
Get shader code for GPU backends
Source§fn supports_gpu(&self) -> bool
fn supports_gpu(&self) -> bool
Check if effect supports GPU acceleration
Auto Trait Implementations§
impl Freeze for GlowEffect
impl RefUnwindSafe for GlowEffect
impl Send for GlowEffect
impl Sync for GlowEffect
impl Unpin for GlowEffect
impl UnsafeUnpin for GlowEffect
impl UnwindSafe for GlowEffect
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
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