pub enum RetainedKind {
Record {
rect: RectU16,
retainable: bool,
},
Draw {
depth: u32,
window: RectU16,
masked: bool,
},
}Expand description
The two retained commands, as the store needs to see them.
Variants§
Record
A PushRetained body: rendered into a page when the store admits it.
Fields
rect: RectU16The bracket’s rect on the device grid, rounded out to whole tiles
and clamped to the viewport — the most a page of this body may
hold. A body whose own drawn bounds leave it painted outside its
rectangle, which a page holding rect cannot carry anywhere else.
retainable: boolWhether the body can be retained at all: it lay wholly inside the viewport and every scissor around it under no coverage mask (so nothing of it was clipped away on the way in), it drew no hole punch and no externally bound texture (whose pixels change with no command changing), and its bracket closed where it was opened.
Draw
A DrawRetained: a composite of a resident page.
Trait Implementations§
Source§impl Clone for RetainedKind
impl Clone for RetainedKind
impl Copy for RetainedKind
Source§impl Debug for RetainedKind
impl Debug for RetainedKind
impl Eq for RetainedKind
Source§impl PartialEq for RetainedKind
impl PartialEq for RetainedKind
impl StructuralPartialEq for RetainedKind
Auto Trait Implementations§
impl Freeze for RetainedKind
impl RefUnwindSafe for RetainedKind
impl Send for RetainedKind
impl Sync for RetainedKind
impl Unpin for RetainedKind
impl UnsafeUnpin for RetainedKind
impl UnwindSafe for RetainedKind
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.