mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
Backport buffer and texture overrun error messages
This commit is contained in:
parent
1605044c05
commit
2ebc5bd565
@ -37,7 +37,7 @@ pub enum TransferError {
|
|||||||
MissingCopySrcUsageFlag,
|
MissingCopySrcUsageFlag,
|
||||||
#[error("destination buffer/texture is missing the `COPY_DST` usage flag")]
|
#[error("destination buffer/texture is missing the `COPY_DST` usage flag")]
|
||||||
MissingCopyDstUsageFlag,
|
MissingCopyDstUsageFlag,
|
||||||
#[error("copy would end up overruning the bounds of the destination buffer/texture")]
|
#[error("copy would end up overruning the bounds of one of the buffers or textures")]
|
||||||
BufferOverrun,
|
BufferOverrun,
|
||||||
#[error("buffer offset {0} is not aligned to block size or `COPY_BUFFER_ALIGNMENT`")]
|
#[error("buffer offset {0} is not aligned to block size or `COPY_BUFFER_ALIGNMENT`")]
|
||||||
UnalignedBufferOffset(BufferAddress),
|
UnalignedBufferOffset(BufferAddress),
|
||||||
|
Loading…
Reference in New Issue
Block a user