mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Merge #870
870: Remove dead code r=kvark a=dhardy Also, why bother setting the padding bytes to 0? Co-authored-by: Diggory Hardy <git@dhardy.name>
This commit is contained in:
@@ -52,10 +52,6 @@ impl DeviceExt for crate::Device {
|
||||
mapped_at_creation: true,
|
||||
};
|
||||
|
||||
let mut map_context = crate::MapContext::new(padded_size);
|
||||
|
||||
map_context.initial_range = 0..padded_size;
|
||||
|
||||
let buffer = self.create_buffer(&wgt_descriptor);
|
||||
{
|
||||
let mut slice = buffer.slice(..).get_mapped_range_mut();
|
||||
|
||||
Reference in New Issue
Block a user