pub enum RefreshOutcome {
Ok,
ColorsTruncated,
ChunkOutOfBbox,
SceneIdxOob,
}Expand description
Outcome of GpuSceneResident::refresh_chunk. Most callers
can ignore the result; ColorsTruncated indicates the chunk’s
colour data overflowed the per-slot stride and was clipped.
Variants§
Ok
ColorsTruncated
The chunk’s colour count exceeded COLORS_PER_CHUNK_WORDS;
the GPU sees the first stride colours. Bump
COLORS_PER_CHUNK_WORDS for content that hits this.
ChunkOutOfBbox
Retained for ABI compatibility; the GPU.7 modular pool no longer rejects chunks by bbox.
SceneIdxOob
scene_idx is past grid_count. Programming error.
Trait Implementations§
Source§impl Clone for RefreshOutcome
impl Clone for RefreshOutcome
Source§fn clone(&self) -> RefreshOutcome
fn clone(&self) -> RefreshOutcome
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 RefreshOutcome
Source§impl Debug for RefreshOutcome
impl Debug for RefreshOutcome
impl Eq for RefreshOutcome
Source§impl PartialEq for RefreshOutcome
impl PartialEq for RefreshOutcome
Source§fn eq(&self, other: &RefreshOutcome) -> bool
fn eq(&self, other: &RefreshOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefreshOutcome
Auto Trait Implementations§
impl Freeze for RefreshOutcome
impl RefUnwindSafe for RefreshOutcome
impl Send for RefreshOutcome
impl Sync for RefreshOutcome
impl Unpin for RefreshOutcome
impl UnsafeUnpin for RefreshOutcome
impl UnwindSafe for RefreshOutcome
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.