mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
address review comments
This commit is contained in:
parent
e6f0d12f97
commit
ef3b141406
4 changed files with 632 additions and 600 deletions
|
@ -191,10 +191,10 @@ impl GPUDeviceMethods for GPUDevice {
|
|||
.is_ok());
|
||||
}
|
||||
state = GPUBufferState::MappedAtCreation;
|
||||
mapping_range = (0, descriptor.size);
|
||||
mapping_range = 0..descriptor.size;
|
||||
} else {
|
||||
state = GPUBufferState::Unmapped;
|
||||
mapping_range = (0, 0);
|
||||
mapping_range = 0..0;
|
||||
}
|
||||
|
||||
GPUBuffer::new(
|
||||
|
@ -364,7 +364,7 @@ impl GPUDeviceMethods for GPUDevice {
|
|||
WebGPUBindings::Buffer(BufferBinding {
|
||||
buffer_id: b.buffer.id().0,
|
||||
offset: b.offset,
|
||||
size: wgt::BufferSize::new(b.size.unwrap_or(0)),
|
||||
size: b.size.and_then(wgt::BufferSize::new),
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue