pub struct QuadPrimitive {
pub bounds: Box2D<f32>,
pub clip: Box2D<f32>,
pub input_task: RenderTaskId,
pub pattern_scale_offset: ScaleOffset,
pub color: PremultipliedColorF,
}Expand description
Matches QuadPrimitive in ps_quad.glsl
Fields§
§bounds: Box2D<f32>§clip: Box2D<f32>§input_task: RenderTaskId§pattern_scale_offset: ScaleOffset§color: PremultipliedColorFBase color of the pattern.
Trait Implementations§
Source§impl GpuBufferDataF for QuadPrimitive
impl GpuBufferDataF for QuadPrimitive
const NUM_BLOCKS: usize = 5
fn write(&self, writer: &mut GpuBufferWriter<'_, GpuBufferBlockF>)
Auto Trait Implementations§
impl Freeze for QuadPrimitive
impl RefUnwindSafe for QuadPrimitive
impl Send for QuadPrimitive
impl Sync for QuadPrimitive
impl Unpin for QuadPrimitive
impl UnsafeUnpin for QuadPrimitive
impl UnwindSafe for QuadPrimitive
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