pub enum ScalarFieldTextureError {
RendererMismatch,
DimensionsTooLarge,
UpdateRegionOutOfBounds,
InvalidUpdateValueCount,
NonFiniteUpdateValue,
NonPortableValue,
AllocationFailed {
requested_bytes: usize,
},
}Expand description
Failure while creating or updating a ScalarFieldTexture.
Variants§
RendererMismatch
The texture belongs to another renderer and GPU device.
DimensionsTooLarge
Grid dimensions exceed the addressable wgpu texture range.
UpdateRegionOutOfBounds
A region does not fit inside the current scalar texture.
InvalidUpdateValueCount
Region values did not match the region dimensions.
NonFiniteUpdateValue
A region value was NaN or infinite.
NonPortableValue
A finite scalar source lies outside the portable GPU arithmetic envelope.
AllocationFailed
CPU recovery storage could not be reserved.
Trait Implementations§
Source§impl Clone for ScalarFieldTextureError
impl Clone for ScalarFieldTextureError
Source§fn clone(&self) -> ScalarFieldTextureError
fn clone(&self) -> ScalarFieldTextureError
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 ScalarFieldTextureError
Source§impl Debug for ScalarFieldTextureError
impl Debug for ScalarFieldTextureError
Source§impl Display for ScalarFieldTextureError
impl Display for ScalarFieldTextureError
impl Eq for ScalarFieldTextureError
Source§impl Error for ScalarFieldTextureError
impl Error for ScalarFieldTextureError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ScalarFieldTextureError
impl PartialEq for ScalarFieldTextureError
impl StructuralPartialEq for ScalarFieldTextureError
Auto Trait Implementations§
impl Freeze for ScalarFieldTextureError
impl RefUnwindSafe for ScalarFieldTextureError
impl Send for ScalarFieldTextureError
impl Sync for ScalarFieldTextureError
impl Unpin for ScalarFieldTextureError
impl UnsafeUnpin for ScalarFieldTextureError
impl UnwindSafe for ScalarFieldTextureError
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
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
Compare self to
key and return true if they are equal.