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
impl 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