Enum wgpu_core::command::TransferError [−][src]
pub enum TransferError {
Show 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,
UnspecifiedBytesPerRow,
UnspecifiedRowsPerImage,
InvalidBytesPerRow,
InvalidCopySize,
InvalidRowsPerImage,
MismatchedAspects,
CopyFromForbiddenTextureFormat(TextureFormat),
CopyToForbiddenTextureFormat(TextureFormat),
}Error encountered while attempting a data transfer.
Variants
InvalidBuffer(BufferId)InvalidTexture(TextureId)Show fields
Fields of BufferOverrun
Show fields
Fields of TextureOverrun
UnalignedBufferOffset(BufferAddress)UnalignedCopySize(BufferAddress)CopyFromForbiddenTextureFormat(TextureFormat)CopyToForbiddenTextureFormat(TextureFormat)Trait Implementations
impl Clone for TransferError[src]
impl Clone for TransferError[src]fn clone(&self) -> TransferError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Error for TransferError[src]
impl Error for TransferError[src]impl From<TransferError> for CopyError[src]
impl From<TransferError> for CopyError[src]fn from(source: TransferError) -> Self[src]
impl From<TransferError> for QueueWriteError[src]
impl From<TransferError> for QueueWriteError[src]fn from(source: TransferError) -> Self[src]
Auto Trait Implementations
impl !RefUnwindSafe for TransferError
impl !RefUnwindSafe for TransferErrorimpl Send for TransferError
impl Send for TransferErrorimpl Sync for TransferError
impl Sync for TransferErrorimpl Unpin for TransferError
impl Unpin for TransferErrorimpl !UnwindSafe for TransferError
impl !UnwindSafe for TransferError