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
InvalidBuffer(BufferId)
Tuple Fields of InvalidBuffer
0: BufferId
InvalidTexture(TextureId)
Tuple Fields of InvalidTexture
0: TextureId
Fields of BufferOverrun
Fields of TextureOverrun
Fields of InvalidTextureAspect
format: TextureFormat
aspect: TextureAspect
UnalignedBufferOffset(BufferAddress)
Tuple Fields of UnalignedBufferOffset
UnalignedCopySize(BufferAddress)
Tuple Fields of UnalignedCopySize
CopyFromForbiddenTextureFormat(TextureFormat)
Tuple Fields of CopyFromForbiddenTextureFormat
CopyToForbiddenTextureFormat(TextureFormat)
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