pub struct ShaderQuadCmd {
pub pipeline_id: u64,
pub rect: (f32, f32, f32, f32),
pub uniforms: Vec<u8>,
pub clip: Option<(f32, f32, f32, f32)>,
pub animate_time: bool,
}Expand description
One collected DrawCommand::ShaderFill, in PHYSICAL pixels, ready for
the compositor. clip is the widget clip stack’s intersection at record
time (physical px, x/y/w/h), independent of any damage clip.
Fields§
§pipeline_id: u64§rect: (f32, f32, f32, f32)(x, y, w, h) in physical pixels.
uniforms: Vec<u8>§clip: Option<(f32, f32, f32, f32)>(x, y, w, h) in physical pixels; None = unclipped.
animate_time: boolSee crate::DrawCommand::ShaderFill: when true, the platform
patches the first 4 uniform bytes with a live clock each present
(D109 maturity) — animation without CPU repaint.
Trait Implementations§
Source§impl Clone for ShaderQuadCmd
impl Clone for ShaderQuadCmd
Source§fn clone(&self) -> ShaderQuadCmd
fn clone(&self) -> ShaderQuadCmd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShaderQuadCmd
impl Debug for ShaderQuadCmd
Source§impl PartialEq for ShaderQuadCmd
impl PartialEq for ShaderQuadCmd
impl StructuralPartialEq for ShaderQuadCmd
Auto Trait Implementations§
impl Freeze for ShaderQuadCmd
impl RefUnwindSafe for ShaderQuadCmd
impl Send for ShaderQuadCmd
impl Sync for ShaderQuadCmd
impl Unpin for ShaderQuadCmd
impl UnsafeUnpin for ShaderQuadCmd
impl UnwindSafe for ShaderQuadCmd
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