mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
chore: satisfy unused_qualifications
(again)
This commit is contained in:
parent
3767a62339
commit
d0fd6a231c
@ -3497,13 +3497,13 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
Mf::Transpose => "transpose",
|
||||
Mf::Determinant => "determinant",
|
||||
Mf::QuantizeToF16 => match *ctx.resolve_type(arg, &self.module.types) {
|
||||
crate::TypeInner::Scalar { .. } => {
|
||||
TypeInner::Scalar { .. } => {
|
||||
write!(self.out, "unpackHalf2x16(packHalf2x16(vec2(")?;
|
||||
self.write_expr(arg, ctx)?;
|
||||
write!(self.out, "))).x")?;
|
||||
return Ok(());
|
||||
}
|
||||
crate::TypeInner::Vector {
|
||||
TypeInner::Vector {
|
||||
size: crate::VectorSize::Bi,
|
||||
..
|
||||
} => {
|
||||
@ -3512,7 +3512,7 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
write!(self.out, "))")?;
|
||||
return Ok(());
|
||||
}
|
||||
crate::TypeInner::Vector {
|
||||
TypeInner::Vector {
|
||||
size: crate::VectorSize::Tri,
|
||||
..
|
||||
} => {
|
||||
@ -3523,7 +3523,7 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
write!(self.out, ".zz)).x)")?;
|
||||
return Ok(());
|
||||
}
|
||||
crate::TypeInner::Vector {
|
||||
TypeInner::Vector {
|
||||
size: crate::VectorSize::Quad,
|
||||
..
|
||||
} => {
|
||||
|
@ -689,7 +689,7 @@ impl Global {
|
||||
if let Some(ref staging_buffer) = staging_buffer {
|
||||
cmd_buf_raw.transition_buffers(&[hal::BufferBarrier::<dyn hal::DynBuffer> {
|
||||
buffer: staging_buffer.raw(),
|
||||
usage: hal::BufferUses::MAP_WRITE..hal::BufferUses::COPY_SRC,
|
||||
usage: BufferUses::MAP_WRITE..BufferUses::COPY_SRC,
|
||||
}]);
|
||||
}
|
||||
}
|
||||
@ -711,7 +711,7 @@ impl Global {
|
||||
unsafe {
|
||||
cmd_buf_raw.transition_buffers(&[hal::BufferBarrier::<dyn hal::DynBuffer> {
|
||||
buffer: tlas.instance_buffer.as_ref(),
|
||||
usage: hal::BufferUses::MAP_READ..hal::BufferUses::COPY_DST,
|
||||
usage: BufferUses::MAP_READ..BufferUses::COPY_DST,
|
||||
}]);
|
||||
let temp = hal::BufferCopy {
|
||||
src_offset: range.start as u64,
|
||||
@ -951,7 +951,7 @@ fn iter_blas<'a>(
|
||||
}
|
||||
let data = cmd_buf_data.trackers.buffers.set_single(
|
||||
&index_buffer,
|
||||
hal::BufferUses::BOTTOM_LEVEL_ACCELERATION_STRUCTURE_INPUT,
|
||||
BufferUses::BOTTOM_LEVEL_ACCELERATION_STRUCTURE_INPUT,
|
||||
);
|
||||
Some((index_buffer.clone(), data))
|
||||
} else {
|
||||
|
@ -21,7 +21,7 @@ impl ScratchBuffer {
|
||||
usage: BufferUses::ACCELERATION_STRUCTURE_SCRATCH,
|
||||
memory_flags: hal::MemoryFlags::empty(),
|
||||
})
|
||||
.map_err(crate::device::DeviceError::from_hal)?
|
||||
.map_err(DeviceError::from_hal)?
|
||||
};
|
||||
Ok(Self {
|
||||
raw: ManuallyDrop::new(raw),
|
||||
|
Loading…
Reference in New Issue
Block a user