diff --git a/src/back/msl/writer.rs b/src/back/msl/writer.rs index 55c0d5482..3436ac0ec 100644 --- a/src/back/msl/writer.rs +++ b/src/back/msl/writer.rs @@ -1207,10 +1207,10 @@ impl Writer { Mf::FindLsb => "", Mf::FindMsb => "", // data packing - Mf::Pack4x8snorm => "pack_float_to_unorm4x8", - Mf::Pack4x8unorm => "pack_float_to_snorm4x8", - Mf::Pack2x16snorm => "pack_float_to_unorm2x16", - Mf::Pack2x16unorm => "pack_float_to_snorm2x16", + Mf::Pack4x8snorm => "pack_float_to_snorm4x8", + Mf::Pack4x8unorm => "pack_float_to_unorm4x8", + Mf::Pack2x16snorm => "pack_float_to_snorm2x16", + Mf::Pack2x16unorm => "pack_float_to_unorm2x16", Mf::Pack2x16float => "", // data unpacking Mf::Unpack4x8snorm => "unpack_snorm4x8_to_float", diff --git a/tests/out/msl/bits.msl b/tests/out/msl/bits.msl index b0c76ff82..05574f717 100644 --- a/tests/out/msl/bits.msl +++ b/tests/out/msl/bits.msl @@ -24,13 +24,13 @@ kernel void main_( f2_ = metal::float2(0.0); f4_ = metal::float4(0.0); metal::float4 _e28 = f4_; - u = metal::pack_float_to_unorm4x8(_e28); + u = metal::pack_float_to_snorm4x8(_e28); metal::float4 _e30 = f4_; - u = metal::pack_float_to_snorm4x8(_e30); + u = metal::pack_float_to_unorm4x8(_e30); metal::float2 _e32 = f2_; - u = metal::pack_float_to_unorm2x16(_e32); + u = metal::pack_float_to_snorm2x16(_e32); metal::float2 _e34 = f2_; - u = metal::pack_float_to_snorm2x16(_e34); + u = metal::pack_float_to_unorm2x16(_e34); metal::float2 _e36 = f2_; u = as_type(half2(_e36)); metal::uint _e38 = u;