Skip to content

Commit

Permalink
Added missing RgbaVector conversion override
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Nov 21, 2020
1 parent a9e2b4c commit 93e9d9d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ internal class PixelOperations : PixelOperations<RgbaVector>
/// <inheritdoc />
public override PixelTypeInfo GetPixelTypeInfo() => LazyInfo.Value;

/// <inheritdoc />
public override void From<TSourcePixel>(
Configuration configuration,
ReadOnlySpan<TSourcePixel> sourcePixels,
Span<RgbaVector> destinationPixels)
{
Span<Vector4> destinationVectors = MemoryMarshal.Cast<RgbaVector, Vector4>(destinationPixels);

PixelOperations<TSourcePixel>.Instance.ToVector4(configuration, sourcePixels, destinationVectors);
}

/// <inheritdoc />
public override void FromVector4Destructive(
Configuration configuration,
Expand Down

0 comments on commit 93e9d9d

Please sign in to comment.