keep working on matrix. key is to remove old matrix types
Signed-off-by: Youmu Liu <105042599+Nitload-NSI@users.noreply.github.com>
This commit is contained in:
@@ -50,9 +50,16 @@ namespace StgSharp.HighPerformance
|
||||
|
||||
internal M128(Vector4 v)
|
||||
{
|
||||
Unsafe.SkipInit(out this);
|
||||
Vec = v.AsVector128();
|
||||
}
|
||||
|
||||
internal M128(Vector128<float> v)
|
||||
{
|
||||
Unsafe.SkipInit(out this);
|
||||
Vec = v;
|
||||
}
|
||||
|
||||
public ref T AsRef<T>() where T: unmanaged, INumber<T>
|
||||
{
|
||||
return ref Unsafe.As<byte, T>(ref Buffer[0]);
|
||||
|
||||
Reference in New Issue
Block a user