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(uint), sizeof(uint), 2, 1, "global::Misaki.HighPerformance.Mathematics.uint")]
[NumericConvertable("(uint){v}.{c}", typeof(int2), typeof(float2), typeof(double2))]
[NumericConvertable("{v}.{c} ? 1u : 0u", typeof(bool2))]
[NumericConvertable("(uint){v}.{c}", typeof(int2), typeof(float2), typeof(double2), typeof(bool2))]
public partial struct uint2
{
}
@@ -23,8 +22,7 @@ public partial struct uint2x4
}
[NumericType(typeof(uint), sizeof(uint), 3, 1, "global::Misaki.HighPerformance.Mathematics.uint")]
[NumericConvertable("(uint){v}.{c}", typeof(int3), typeof(float3), typeof(double3))]
[NumericConvertable("{v}.{c} ? 1u : 0u", typeof(bool3))]
[NumericConvertable("(uint){v}.{c}", typeof(int3), typeof(float3), typeof(double3), typeof(bool3))]
public partial struct uint3
{
}
@@ -45,8 +43,7 @@ public partial struct uint3x4
}
[NumericType(typeof(uint), sizeof(uint), 4, 1, "global::Misaki.HighPerformance.Mathematics.uint")]
[NumericConvertable("(uint){v}.{c}", typeof(int4), typeof(float4), typeof(double4))]
[NumericConvertable("{v}.{c} ? 1u : 0u", typeof(bool4))]
[NumericConvertable("(uint){v}.{c}", typeof(int4), typeof(float4), typeof(double4), typeof(bool4))]
public partial struct uint4
{
}