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.Shuffle4Channel(s.Span, d.Span, control), control); }
public static void ToRgba32(ReadOnlySpan <byte> source, Span <byte> dest) => SimdUtils.Shuffle4Channel <ZYXWShuffle4>(source, dest, default);
public static void ToArgb32(ReadOnlySpan <byte> source, Span <byte> dest) => SimdUtils.Shuffle4Channel <WXYZShuffle4>(source, dest, default);
public void Shuffle4Channel() { SimdUtils.Shuffle4Channel <WXYZShuffle4>(this.source, this.destination, default); }
public void Shuffle4Channel() { SimdUtils.Shuffle4Channel(this.source, this.destination, control); }