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),
}Expand description
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
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TransferErrorimpl Send for TransferErrorimpl Sync for TransferErrorimpl Unpin for TransferErrorimpl !UnwindSafe for TransferErrorBlanket Implementations
Mutably borrows from an owned value. Read more