/// <inheritdoc /> internal override void ToVector4(BufferPointer <Color> sourceColors, BufferPointer <Vector4> destVectors, int count) { if (count < 256) { // Doesn't worth to bother with SIMD: base.ToVector4(sourceColors, destVectors, count); return; } int remainder = count % Vector <uint> .Count; int alignedCount = count - remainder; if (alignedCount > 0) { ToVector4SimdAligned(sourceColors, destVectors, alignedCount); } if (remainder > 0) { sourceColors = sourceColors.Slice(alignedCount); destVectors = destVectors.Slice(alignedCount); base.ToVector4(sourceColors, destVectors, remainder); } }