Skip to content

Commit 93e9d9d

Browse files
committed
Added missing RgbaVector conversion override
1 parent a9e2b4c commit 93e9d9d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ImageSharp/PixelFormats/PixelImplementations/PixelOperations/RgbaVector.PixelOperations.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ internal class PixelOperations : PixelOperations<RgbaVector>
2626
/// <inheritdoc />
2727
public override PixelTypeInfo GetPixelTypeInfo() => LazyInfo.Value;
2828

29+
/// <inheritdoc />
30+
public override void From<TSourcePixel>(
31+
Configuration configuration,
32+
ReadOnlySpan<TSourcePixel> sourcePixels,
33+
Span<RgbaVector> destinationPixels)
34+
{
35+
Span<Vector4> destinationVectors = MemoryMarshal.Cast<RgbaVector, Vector4>(destinationPixels);
36+
37+
PixelOperations<TSourcePixel>.Instance.ToVector4(configuration, sourcePixels, destinationVectors);
38+
}
39+
2940
/// <inheritdoc />
3041
public override void FromVector4Destructive(
3142
Configuration configuration,

0 commit comments

Comments
 (0)