pub enum BufferTextureCopyInfoError {
InvalidBytesPerRow,
InvalidRowsPerImage,
ImageStrideOverflow,
ImageBytesOverflow(bool),
ArraySizeOverflow(bool),
}
Expand description
Errors that can occur while populating BufferTextureCopyInfo
.
Variants§
InvalidBytesPerRow
The bytes_per_row
is too small for the texture width.
InvalidRowsPerImage
The rows_per_image
is too small for the texture height.
ImageStrideOverflow
The image stride overflows a u64
.
ImageBytesOverflow(bool)
The last-layer byte size overflows a u64
.
The bool value indicates whether the multiplication (false) or the addition (true) overflowed.
ArraySizeOverflow(bool)
The total size of the copy overflows a u64
.
The bool value indicates whether the multiplication (false) or the addition (true) overflowed.
Trait Implementations§
Source§impl Clone for BufferTextureCopyInfoError
impl Clone for BufferTextureCopyInfoError
Source§fn clone(&self) -> BufferTextureCopyInfoError
fn clone(&self) -> BufferTextureCopyInfoError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BufferTextureCopyInfoError
impl Debug for BufferTextureCopyInfoError
impl Copy for BufferTextureCopyInfoError
impl Eq for BufferTextureCopyInfoError
impl StructuralPartialEq for BufferTextureCopyInfoError
Auto Trait Implementations§
impl Freeze for BufferTextureCopyInfoError
impl RefUnwindSafe for BufferTextureCopyInfoError
impl Send for BufferTextureCopyInfoError
impl Sync for BufferTextureCopyInfoError
impl Unpin for BufferTextureCopyInfoError
impl UnwindSafe for BufferTextureCopyInfoError
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