Update math library

This commit is contained in:
2026-02-12 19:43:04 +09:00
parent a9c143c2a2
commit f9cb909841
12 changed files with 798 additions and 431 deletions

View File

@@ -1,8 +1,7 @@
namespace Misaki.HighPerformance.Mathematics;
[NumericType(typeof(float), sizeof(float), 2, 1, "global::Misaki.HighPerformance.Mathematics.float")]
[NumericConvertable("(float){v}.{c}", typeof(int2), typeof(uint2), typeof(double2))]
[NumericConvertable("{v}.{c} ? 1.0f : 0.0f", typeof(bool2))]
[NumericConvertable("(float){v}.{c}", typeof(int2), typeof(uint2), typeof(double2), typeof(bool2))]
public partial struct float2
{
}
@@ -26,8 +25,7 @@ public partial struct float2x4
}
[NumericType(typeof(float), sizeof(float), 3, 1, "global::Misaki.HighPerformance.Mathematics.float")]
[NumericConvertable("(float){v}.{c}", typeof(int3), typeof(uint3), typeof(double3))]
[NumericConvertable("{v}.{c} ? 1.0f : 0.0f", typeof(bool3))]
[NumericConvertable("(float){v}.{c}", typeof(int3), typeof(uint3), typeof(double3), typeof(bool3))]
public partial struct float3
{
}
@@ -63,8 +61,7 @@ public partial struct float3x4
}
[NumericType(typeof(float), sizeof(float), 4, 1, "global::Misaki.HighPerformance.Mathematics.float")]
[NumericConvertable("(float){v}.{c}", typeof(int4), typeof(uint4), typeof(double4))]
[NumericConvertable("{v}.{c} ? 1.0f : 0.0f", typeof(bool4))]
[NumericConvertable("(float){v}.{c}", typeof(int4), typeof(uint4), typeof(double4), typeof(bool4))]
public partial struct float4
{
}