Skip to content

Commit 0610f9e

Browse files
committed
Create PassthroughFilterDesc.cs
1 parent 787a211 commit 0610f9e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Runtime.CompilerServices;
2+
using System.Runtime.Intrinsics;
3+
4+
namespace Motely;
5+
6+
public struct PassthroughFilterDesc() : IMotelySeedFilterDesc<PassthroughFilterDesc.PassthroughFilter>
7+
{
8+
9+
public PassthroughFilter CreateFilter(ref MotelyFilterCreationContext ctx)
10+
{
11+
return new PassthroughFilter();
12+
}
13+
14+
public struct PassthroughFilter() : IMotelySeedFilter
15+
{
16+
public readonly VectorMask Filter(ref MotelyVectorSearchContext searchContext)
17+
{
18+
return VectorMask.AllBitsSet;
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)