Enum wgpu_core::command::TransferError [−][src]
pub enum TransferError {
Show 27 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),
InvalidDepthTextureExtent,
MismatchedTextureFormats {
src_format: TextureFormat,
dst_format: TextureFormat,
},
MemoryInitFailure(ClearError),
}
Expand description
Error encountered while attempting a data transfer.
Variants
InvalidBuffer(BufferId)
Tuple Fields
0: BufferId
InvalidTexture(TextureId)
Tuple Fields
0: TextureId
SameSourceDestinationBuffer
MissingCopySrcUsageFlag
MissingCopyDstUsageFlag(Option<BufferId>, Option<TextureId>)
BufferOverrun
TextureOverrun
Fields
start_offset: u32
end_offset: u32
texture_size: u32
dimension: TextureErrorDimension
side: CopySide
InvalidTextureAspect
InvalidTextureMipLevel
UnalignedBufferOffset(BufferAddress)
Tuple Fields
UnalignedCopySize(BufferAddress)
Tuple Fields
UnalignedCopyWidth
UnalignedCopyHeight
UnalignedCopyOriginX
UnalignedCopyOriginY
UnalignedBytesPerRow
UnspecifiedBytesPerRow
UnspecifiedRowsPerImage
InvalidBytesPerRow
InvalidCopySize
InvalidRowsPerImage
MismatchedAspects
CopyFromForbiddenTextureFormat(TextureFormat)
Tuple Fields
CopyToForbiddenTextureFormat(TextureFormat)
Tuple Fields
InvalidDepthTextureExtent
MismatchedTextureFormats
MemoryInitFailure(ClearError)
Tuple Fields
0: ClearError
Trait Implementations
Performs the conversion.
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