pub struct FragmentDraw {
pub id: FragmentId,
pub params: [f32; 16],
pub image: FragmentImage,
}Expand description
What a QuadKind::Fragment quad points at: which registered WGSL
paints it, and the sixteen numbers that frame passes it.
It rides beside the quads rather than on them because Quad is copied
twice per node on a 10,000-node frame and 68 more bytes on it would be
paid by every quad of every frame, for a kind almost none of them are
(the same reasoning puts a segment’s endpoints in
uv). A frame that draws no fragment leaves the vector empty.
Fields§
§id: FragmentId§params: [f32; 16]Positional, app-defined; the view’s params zero-padded to
sixteen. The shader reads them as four vec4<f32>.
image: FragmentImageThe image the function samples through kui_sample, resolved to
where its texels are this frame.
Trait Implementations§
Source§impl Clone for FragmentDraw
impl Clone for FragmentDraw
Source§fn clone(&self) -> FragmentDraw
fn clone(&self) -> FragmentDraw
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 moreimpl Copy for FragmentDraw
Source§impl Debug for FragmentDraw
impl Debug for FragmentDraw
Source§impl PartialEq for FragmentDraw
impl PartialEq for FragmentDraw
impl StructuralPartialEq for FragmentDraw
Auto Trait Implementations§
impl Freeze for FragmentDraw
impl RefUnwindSafe for FragmentDraw
impl Send for FragmentDraw
impl Sync for FragmentDraw
impl Unpin for FragmentDraw
impl UnsafeUnpin for FragmentDraw
impl UnwindSafe for FragmentDraw
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.