From 2ebc5bd5651b48f5a24e88d8588ef6d08db8e238 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Wed, 19 Aug 2020 11:17:38 -0400 Subject: [PATCH] Backport buffer and texture overrun error messages --- wgpu-core/src/command/transfer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/command/transfer.rs b/wgpu-core/src/command/transfer.rs index c928da902..289a4134f 100644 --- a/wgpu-core/src/command/transfer.rs +++ b/wgpu-core/src/command/transfer.rs @@ -37,7 +37,7 @@ pub enum TransferError { MissingCopySrcUsageFlag, #[error("destination buffer/texture is missing the `COPY_DST` usage flag")] 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, #[error("buffer offset {0} is not aligned to block size or `COPY_BUFFER_ALIGNMENT`")] UnalignedBufferOffset(BufferAddress),