mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
210
Brutal.Numerics/Vector/double2/double2.pack.gen.cs
Normal file
210
Brutal.Numerics/Vector/double2/double2.pack.gen.cs
Normal file
|
|
@ -0,0 +1,210 @@
|
|||
// <auto-generated /> - edit Vector.pack.tt to modify
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.Numerics;
|
||||
|
||||
public partial struct double2
|
||||
{
|
||||
public static double2 Unpack(in sbyte2 vector, Func<sbyte, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in byte2 vector, Func<byte, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in short2 vector, Func<short, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in ushort2 vector, Func<ushort, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in int2 vector, Func<int, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in uint2 vector, Func<uint, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in float2 vector, Func<float, double> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out double2 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static double2 Unpack(in sbyte2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.SByte.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static double2 Unpack(in byte2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Byte.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static double2 Unpack(in short2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Short.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static double2 Unpack(in ushort2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.UShort.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static double2 Unpack(in int2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Int.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static double2 Unpack(in uint2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.UInt.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static double2 Unpack(in float2 vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Float.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<sbyte2> source,
|
||||
Span<double2> destination,
|
||||
Func<sbyte, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<byte2> source,
|
||||
Span<double2> destination,
|
||||
Func<byte, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<short2> source,
|
||||
Span<double2> destination,
|
||||
Func<short, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<ushort2> source,
|
||||
Span<double2> destination,
|
||||
Func<ushort, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<int2> source,
|
||||
Span<double2> destination,
|
||||
Func<int, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<uint2> source,
|
||||
Span<double2> destination,
|
||||
Func<uint, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<float2> source,
|
||||
Span<double2> destination,
|
||||
Func<float, double> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<sbyte2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.SByte.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<byte2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.Byte.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<short2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.Short.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<ushort2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.UShort.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<int2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.Int.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<uint2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.UInt.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<float2> source,
|
||||
Span<double2> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.Float.ToDouble(mode));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue