-
-
Notifications
You must be signed in to change notification settings - Fork 850
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b11bec
commit 23bd85c
Showing
3 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ignore: | ||
"src/ImageSharp/Common/Helpers/DebugGuard.cs" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace ImageSharp | ||
{ | ||
using System.Numerics; | ||
|
||
public partial struct Color | ||
{ | ||
internal class BulkOperations : BulkPixelOperations<Color> | ||
{ | ||
private static readonly int VectorSize = Vector<uint>.Count; | ||
|
||
internal static void PackToVector4Aligned( | ||
ArrayPointer<Color> source, | ||
ArrayPointer<Vector4> destination, | ||
int count) | ||
{ | ||
DebugGuard.IsTrue( | ||
count % VectorSize == 0, | ||
nameof(count), | ||
"Argument 'count' should divisible by Vector<uint>.Count!"); | ||
|
||
|
||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters