Enum wgpu_core::command::TransferError
source · [−]pub enum TransferError {
Show 28 variants
InvalidBuffer(BufferId),
InvalidTexture(TextureId),
SameSourceDestinationBuffer,
MissingCopySrcUsageFlag,
MissingCopyDstUsageFlag(Option<BufferId>, Option<TextureId>),
BufferOverrun {
start_offset: BufferAddress,
end_offset: BufferAddress,
buffer_size: BufferAddress,
side: CopySide,
},
TextureOverrun {
start_offset: u32,
end_offset: u32,
texture_size: u32,
dimension: TextureErrorDimension,
side: CopySide,
},
InvalidTextureAspect {
format: TextureFormat,
aspect: TextureAspect,
},
InvalidTextureMipLevel {
level: u32,
total: u32,
},
UnalignedBufferOffset(BufferAddress),
UnalignedCopySize(BufferAddress),
UnalignedCopyWidth,
UnalignedCopyHeight,
UnalignedCopyOriginX,
UnalignedCopyOriginY,
UnalignedBytesPerRow,
UnspecifiedBytesPerRow,
UnspecifiedRowsPerImage,
InvalidBytesPerRow,
InvalidCopySize,
InvalidRowsPerImage,
MismatchedAspects,
CopyFromForbiddenTextureFormat(TextureFormat),
CopyToForbiddenTextureFormat(TextureFormat),
InvalidDepthTextureExtent,
MismatchedTextureFormats {
src_format: TextureFormat,
dst_format: TextureFormat,
},
MemoryInitFailure(ClearError),
MissingDownlevelFlags(MissingDownlevelFlags),
}
Expand description
Error encountered while attempting a data transfer.
Variants
InvalidBuffer(BufferId)
InvalidTexture(TextureId)
SameSourceDestinationBuffer
MissingCopySrcUsageFlag
MissingCopyDstUsageFlag(Option<BufferId>, Option<TextureId>)
BufferOverrun
TextureOverrun
Fields
start_offset: u32
end_offset: u32
texture_size: u32
dimension: TextureErrorDimension
side: CopySide
InvalidTextureAspect
InvalidTextureMipLevel
UnalignedBufferOffset(BufferAddress)
UnalignedCopySize(BufferAddress)
UnalignedCopyWidth
UnalignedCopyHeight
UnalignedCopyOriginX
UnalignedCopyOriginY
UnalignedBytesPerRow
UnspecifiedBytesPerRow
UnspecifiedRowsPerImage
InvalidBytesPerRow
InvalidCopySize
InvalidRowsPerImage
MismatchedAspects
CopyFromForbiddenTextureFormat(TextureFormat)
CopyToForbiddenTextureFormat(TextureFormat)
InvalidDepthTextureExtent
MismatchedTextureFormats
MemoryInitFailure(ClearError)
MissingDownlevelFlags(MissingDownlevelFlags)
Trait Implementations
sourceimpl Clone for TransferError
impl Clone for TransferError
sourcefn clone(&self) -> TransferError
fn clone(&self) -> TransferError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransferError
impl Debug for TransferError
sourceimpl Display for TransferError
impl Display for TransferError
sourceimpl Error for TransferError
impl Error for TransferError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ClearError> for TransferError
impl From<ClearError> for TransferError
sourcefn from(source: ClearError) -> Self
fn from(source: ClearError) -> Self
Converts to this type from the input type.
sourceimpl From<MissingDownlevelFlags> for TransferError
impl From<MissingDownlevelFlags> for TransferError
sourcefn from(source: MissingDownlevelFlags) -> Self
fn from(source: MissingDownlevelFlags) -> Self
Converts to this type from the input type.
sourceimpl From<TransferError> for CopyError
impl From<TransferError> for CopyError
sourcefn from(source: TransferError) -> Self
fn from(source: TransferError) -> Self
Converts to this type from the input type.
sourceimpl From<TransferError> for QueueWriteError
impl From<TransferError> for QueueWriteError
sourcefn from(source: TransferError) -> Self
fn from(source: TransferError) -> Self
Converts to this type from the input type.
sourceimpl PrettyError for TransferError
impl PrettyError for TransferError
fn fmt_pretty(&self, fmt: &mut ErrorFormatter<'_>)
Auto Trait Implementations
impl !RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin for TransferError
impl !UnwindSafe for TransferError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more