#[repr(C, align(4))]pub struct FillRect {
pub tag: u32,
pub color_command: u32,
pub origin: u32,
pub size: u32,
}Expand description
VRAM fill (GP0 02h). 4 words (tag + 3 data).
Writes VRAM directly: it ignores the draw area, the draw offset and the
mask bits, and the GPU rounds the X range to 16-pixel steps (psx-spx,
GP0(02h)). Use it to clear a buffer; use QuadFlat::rect for a
panel that should clip and follow the draw offset.
Fields§
§tag: u32OT linkage.
color_command: u320x02000000 | color.
origin: u32Top-left corner in VRAM.
size: u32Width and height.
Implementations§
Trait Implementations§
impl Copy for FillRect
impl Eq for FillRect
impl StructuralPartialEq for FillRect
Auto Trait Implementations§
impl Freeze for FillRect
impl RefUnwindSafe for FillRect
impl Send for FillRect
impl Sync for FillRect
impl Unpin for FillRect
impl UnsafeUnpin for FillRect
impl UnwindSafe for FillRect
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)