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