We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d282ee3 commit 71490d9Copy full SHA for 71490d9
1 file changed
tests/tests/wgpu-validation/noop.rs
@@ -56,3 +56,18 @@ fn device_and_buffers() {
56
device.poll(wgpu::PollType::wait_indefinitely()).unwrap();
57
assert!(done2.load(Relaxed));
58
}
59
+
60
+#[test]
61
+fn transfer_overflow() {
62
+ let (device, queue) = wgpu::Device::noop(&wgpu::DeviceDescriptor::default());
63
64
+ // Create a small buffer. We don't care about the size of this buffer, just that we can use it.
65
+ let buffer = device.create_buffer(&wgpu::BufferDescriptor {
66
+ label: Some("hello world"),
67
+ size: 8,
68
+ usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::COPY_SRC,
69
+ mapped_at_creation: false,
70
+ });
71
72
+ buffer.map_async(wgpu::MapMode::Read, , callback);
73
+}
0 commit comments