mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
Merge #267
267: Use extend_from_slice instead of copy_from_slice r=kvark a=kocsis1david `copy_from_slice` gives an error because it expects the lengths to be the same. Co-authored-by: David <kocsis1david@windowslive.com>
This commit is contained in:
commit
28dff7c10d
1 file changed
+1
-1
@@ -79,7 +79,7 @@ impl BindGroupEntry {
|
||||
});
|
||||
//TODO: validate the count of dynamic offsets to match the layout
|
||||
self.dynamic_offsets.clear();
|
||||
self.dynamic_offsets.copy_from_slice(offsets);
|
||||
self.dynamic_offsets.extend_from_slice(offsets);
|
||||
|
||||
Provision::Changed {
|
||||
was_compatible,
|
||||
|
||||
Reference in new issue
Block a user