Provide some margin to static buffers when growing

This commit is contained in:
Héctor Ramón Jiménez 2023-02-09 06:54:51 +01:00
parent 0715d7d0c7
commit 2097a56b58
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 9 additions and 6 deletions

View file

@ -43,7 +43,7 @@ impl Layer {
Self {
index_buffer: Buffer::new(
device,
"iced_wgpu::triangle vertex buffer",
"iced_wgpu::triangle index buffer",
wgpu::BufferUsages::INDEX | wgpu::BufferUsages::COPY_DST,
),
index_strides: Vec::new(),