Enum wgpu_core::command::TransferError
source · pub enum TransferError {
Show 21 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,
},
UnalignedBufferOffset(BufferAddress),
UnalignedCopySize(BufferAddress),
UnalignedCopyWidth,
UnalignedCopyHeight,
UnalignedCopyOriginX,
UnalignedCopyOriginY,
UnalignedBytesPerRow,
UnalignedRowsPerImage,
InvalidBytesPerRow,
InvalidCopySize,
InvalidRowsPerImage,
MismatchedAspects,
CopyFromForbiddenTextureFormat(TextureFormat),
CopyToForbiddenTextureFormat(TextureFormat),
}
Expand description
Error encountered while attempting a data transfer.
Variants§
InvalidBuffer(BufferId)
InvalidTexture(TextureId)
SameSourceDestinationBuffer
MissingCopySrcUsageFlag
MissingCopyDstUsageFlag(Option<BufferId>, Option<TextureId>)
BufferOverrun
TextureOverrun
Fields
§
dimension: TextureErrorDimension
UnalignedBufferOffset(BufferAddress)
UnalignedCopySize(BufferAddress)
UnalignedCopyWidth
UnalignedCopyHeight
UnalignedCopyOriginX
UnalignedCopyOriginY
UnalignedBytesPerRow
UnalignedRowsPerImage
InvalidBytesPerRow
InvalidCopySize
InvalidRowsPerImage
MismatchedAspects
CopyFromForbiddenTextureFormat(TextureFormat)
CopyToForbiddenTextureFormat(TextureFormat)
Trait Implementations§
source§impl Clone for TransferError
impl Clone for TransferError
source§fn clone(&self) -> TransferError
fn clone(&self) -> TransferError
Returns a copy 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 TransferError
impl Debug for TransferError
source§impl Display for TransferError
impl Display for TransferError
source§impl Error for TransferError
impl Error for TransferError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<TransferError> for CopyError
impl From<TransferError> for CopyError
source§fn from(source: TransferError) -> Self
fn from(source: TransferError) -> Self
Converts to this type from the input type.
source§impl From<TransferError> for QueueWriteError
impl From<TransferError> for QueueWriteError
source§fn from(source: TransferError) -> Self
fn from(source: TransferError) -> Self
Converts to this type from the input type.