diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 7cd65e1de6..f2c68e3e20 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -504,6 +504,9 @@ impl Device { let actual_size = if desc.size == 0 { wgt::COPY_BUFFER_ALIGNMENT + } else if desc.usage.contains(wgt::BufferUsages::VERTEX) { + // Bumping the size by 1 so that we can bind an empty range at the end of the buffer. + desc.size + 1 } else { desc.size };