back to matrix, simplified thread init
This commit is contained in:
@@ -39,8 +39,8 @@ namespace StgSharp.Mathematics.Internal
|
||||
internal unsafe struct SIMDID
|
||||
{
|
||||
|
||||
[FieldOffset(0)]public fixed byte MaskByte[16];
|
||||
[FieldOffset(0)]public ulong Mask;
|
||||
[FieldOffset(0)] public fixed byte MaskByte[16];
|
||||
[FieldOffset(0)] public ulong Mask;
|
||||
|
||||
internal SIMDID(
|
||||
ulong data
|
||||
@@ -54,5 +54,21 @@ namespace StgSharp.Mathematics.Internal
|
||||
Unsafe.SkipInit(out this);
|
||||
}
|
||||
|
||||
public static bool operator !=(
|
||||
SIMDID left,
|
||||
SIMDID right
|
||||
)
|
||||
{
|
||||
return left.Mask != right.Mask;
|
||||
}
|
||||
|
||||
public static bool operator ==(
|
||||
SIMDID left,
|
||||
SIMDID right
|
||||
)
|
||||
{
|
||||
return left.Mask == right.Mask;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user