Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
 public void Shuffle4Channel()
 {
     SimdUtils.Shuffle4 <WXYZShuffle4>(this.source, this.destination, default);
 }
Ejemplo n.º 3
0
 public void Shuffle4Channel()
 {
     SimdUtils.Shuffle4(this.source, this.destination, Control);
 }
Ejemplo n.º 4
0
 public static void ToBgra32(ReadOnlySpan <byte> source, Span <byte> dest)
 => SimdUtils.Shuffle4 <WZYXShuffle4>(source, dest, default);
Ejemplo n.º 5
0
 public static void ToArgb32(ReadOnlySpan <byte> source, Span <byte> dest)
 => SimdUtils.Shuffle4 <WXYZShuffle4>(source, dest, default);
Ejemplo n.º 6
0
 public static void ToAbgr32(ReadOnlySpan <byte> source, Span <byte> dest)
 => SimdUtils.Shuffle4 <XWZYShuffle4>(source, dest, default);