Enum wgpu_core::command::TransferError [−][src]
pub enum TransferError {
Show 24 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),
}
Expand description
Error encountered while attempting a data transfer.
Variants
Tuple Fields of InvalidBuffer
0: BufferId
Tuple Fields of InvalidTexture
0: TextureId
Fields of BufferOverrun
Fields of TextureOverrun
Fields of InvalidTextureAspect
format: TextureFormat
aspect: TextureAspect
Tuple Fields of UnalignedBufferOffset
Tuple Fields of UnalignedCopySize
Tuple Fields of CopyFromForbiddenTextureFormat
Tuple Fields of CopyToForbiddenTextureFormat
Trait Implementations
Performs the conversion.
Performs the conversion.
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
Mutably borrows from an owned value. Read more