Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev committed Apr 24, 2024
1 parent 6018d47 commit 7472851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wgpu-core/src/device/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ impl<A: HalApi> Device<A> {
used: &mut BindGroupStates<A>,
storage: &'a Storage<Buffer<A>>,
limits: &wgt::Limits,
device_id: &id::Id<id::markers::Device>,
device_id: id::Id<id::markers::Device>,
snatch_guard: &'a SnatchGuard<'a>,
) -> Result<hal::BufferBinding<'a, A>, binding_model::CreateBindGroupError> {
use crate::binding_model::CreateBindGroupError as Error;
Expand Down Expand Up @@ -1997,7 +1997,7 @@ impl<A: HalApi> Device<A> {
.add_single(storage, bb.buffer_id, internal_use)
.ok_or(Error::InvalidBuffer(bb.buffer_id))?;

if buffer.device.as_info().id() != *device_id {
if buffer.device.as_info().id() != device_id {
return Err(DeviceError::WrongDevice.into());
}

Expand Down Expand Up @@ -2222,7 +2222,7 @@ impl<A: HalApi> Device<A> {
&mut used,
&*buffer_guard,
&self.limits,
&self.as_info().id(),
self.as_info().id(),
&snatch_guard,
)?;

Expand All @@ -2246,7 +2246,7 @@ impl<A: HalApi> Device<A> {
&mut used,
&*buffer_guard,
&self.limits,
&self.as_info().id(),
self.as_info().id(),
&snatch_guard,
)?;
hal_buffers.push(bb);
Expand Down

0 comments on commit 7472851

Please sign in to comment.