daily update on 20240305 by nitload youmu
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using StgSharp.Controlling;
|
||||
using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
using System.Data.Common;
|
||||
using System.Numerics;
|
||||
@@ -7,23 +8,6 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace StgSharp.Math
|
||||
{
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public unsafe struct M128
|
||||
{
|
||||
[FieldOffset(0)] internal fixed float Single[4];
|
||||
[FieldOffset(0)] internal fixed double Double[2];
|
||||
|
||||
[FieldOffset(0)] internal fixed sbyte Int8[16];
|
||||
[FieldOffset(0)] internal fixed short Int16[8];
|
||||
[FieldOffset(0)] internal fixed int Int32[4];
|
||||
[FieldOffset(0)] internal fixed long Int64[2];
|
||||
|
||||
[FieldOffset(0)] internal fixed byte UInt8[16];
|
||||
[FieldOffset(0)] internal fixed ushort UInt16[8];
|
||||
[FieldOffset(0)] internal fixed uint UInt32[4];
|
||||
[FieldOffset(0)] internal fixed ulong UInt64[2];
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 16)]
|
||||
public struct Vec4d
|
||||
{
|
||||
@@ -35,7 +19,6 @@ namespace StgSharp.Math
|
||||
[FieldOffset(8)] public float Z;
|
||||
[FieldOffset(12)] public float W;
|
||||
|
||||
|
||||
public Vec4d(float x, float y, float z, float w)
|
||||
{
|
||||
vec = new Vector4(x, y, z, w);
|
||||
@@ -46,4 +29,4 @@ namespace StgSharp.Math
|
||||
return vec.reg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user