mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
refactor(msl-out): Pack4x{I,U}8: make was_signed use `matches!(…)
This commit is contained in:
@@ -2436,7 +2436,7 @@ impl<W: Write> Writer<W> {
|
||||
self.put_call_parameters(iter::once(arg), context)?;
|
||||
}
|
||||
fun @ (Mf::Pack4xI8 | Mf::Pack4xU8) => {
|
||||
let was_signed = fun == Mf::Pack4xI8;
|
||||
let was_signed = matches!(fun, Mf::Pack4xI8);
|
||||
if was_signed {
|
||||
write!(self.out, "uint(")?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user