#[repr(C, align(4))]pub struct RectFlat {
pub tag: u32,
pub color_cmd: u32,
pub xy: u32,
pub wh: u32,
}Expand description
Untextured variable-size rectangle. 4 words (tag + 3 data).
Ignores draw-area clip on some GPU revisions; prefer QuadFlat
when you need clipping.
Fields§
§tag: u32OT linkage.
color_cmd: u320x60000000 | color (monochrome rect opcode).
xy: u32Top-left xy.
wh: u32Size wh.
Implementations§
Trait Implementations§
impl Copy for RectFlat
impl Eq for RectFlat
impl StructuralPartialEq for RectFlat
Auto Trait Implementations§
impl Freeze for RectFlat
impl RefUnwindSafe for RectFlat
impl Send for RectFlat
impl Sync for RectFlat
impl Unpin for RectFlat
impl UnsafeUnpin for RectFlat
impl UnwindSafe for RectFlat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)