mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[msl-out] use back::COMPONENTS (#2124)
This commit is contained in:
@@ -1442,7 +1442,7 @@ impl<W: Write> Writer<W> {
|
||||
if offset.is_none() && !is_cube_map {
|
||||
write!(self.out, ", {}::int2(0)", NAMESPACE)?;
|
||||
}
|
||||
let letter = ['x', 'y', 'z', 'w'][component as usize];
|
||||
let letter = back::COMPONENTS[component as usize];
|
||||
write!(self.out, ", {}::component::{}", NAMESPACE, letter)?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user