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