static void RunTest(string serialized) { // No need to test multiple shuffle controls as the // pipeline is always the same. int size = FeatureTestRunner.Deserialize <int>(serialized); byte control = default(WZYXShuffle4).Control; TestShuffleFloat4Channel( size, (s, d) => SimdUtils.Shuffle4(s.Span, d.Span, control), control); }
public void Shuffle4Channel() { SimdUtils.Shuffle4 <WXYZShuffle4>(this.source, this.destination, default); }
public void Shuffle4Channel() { SimdUtils.Shuffle4(this.source, this.destination, Control); }
public static void ToBgra32(ReadOnlySpan <byte> source, Span <byte> dest) => SimdUtils.Shuffle4 <WZYXShuffle4>(source, dest, default);
public static void ToArgb32(ReadOnlySpan <byte> source, Span <byte> dest) => SimdUtils.Shuffle4 <WXYZShuffle4>(source, dest, default);
public static void ToAbgr32(ReadOnlySpan <byte> source, Span <byte> dest) => SimdUtils.Shuffle4 <XWZYShuffle4>(source, dest, default);