pub enum DisplayVisibleRegion {
Full,
InscribedCircle,
}Expand description
The region of the surface the display physically shows. The renderer may refuse to shade anything outside it.
This is PLATFORM (or otherwise host-declared) truth about the display, never derived from app content — apps cannot invent one for their own scene; they get the cull for free on any layout.
Variants§
Full
The whole surface is visible (every rectangular display). The cull machinery never engages: no depth attachment, no occluder, no pipeline variants — bitwise-identical rendering.
InscribedCircle
Only the circle inscribed in the surface rect is visible — the
round-display panel shape (center at the surface midpoint, radius
min(width, height) / 2).
Trait Implementations§
Source§impl Clone for DisplayVisibleRegion
impl Clone for DisplayVisibleRegion
Source§fn clone(&self) -> DisplayVisibleRegion
fn clone(&self) -> DisplayVisibleRegion
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 DisplayVisibleRegion
Source§impl Debug for DisplayVisibleRegion
impl Debug for DisplayVisibleRegion
Source§impl Default for DisplayVisibleRegion
impl Default for DisplayVisibleRegion
Source§fn default() -> DisplayVisibleRegion
fn default() -> DisplayVisibleRegion
Returns the “default value” for a type. Read more
impl Eq for DisplayVisibleRegion
Source§impl PartialEq for DisplayVisibleRegion
impl PartialEq for DisplayVisibleRegion
impl StructuralPartialEq for DisplayVisibleRegion
Auto Trait Implementations§
impl Freeze for DisplayVisibleRegion
impl RefUnwindSafe for DisplayVisibleRegion
impl Send for DisplayVisibleRegion
impl Sync for DisplayVisibleRegion
impl Unpin for DisplayVisibleRegion
impl UnsafeUnpin for DisplayVisibleRegion
impl UnwindSafe for DisplayVisibleRegion
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more