mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
210
brutal.numerics/Brutal.Numerics/Vector/int3/int3.pack.gen.cs
Normal file
210
brutal.numerics/Brutal.Numerics/Vector/int3/int3.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 int3
|
||||
{
|
||||
public static int3 Unpack(in sbyte3 vector, Func<sbyte, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Unpack(in byte3 vector, Func<byte, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Unpack(in short3 vector, Func<short, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Unpack(in ushort3 vector, Func<ushort, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Pack(in uint3 vector, Func<uint, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Pack(in float3 vector, Func<float, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Pack(in double3 vector, Func<double, int> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out int3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static int3 Unpack(in sbyte3 vector, Unpack.Integer mode = Numerics.Unpack.Integer.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.SByte.ToInt(mode));
|
||||
}
|
||||
|
||||
public static int3 Unpack(in byte3 vector, Unpack.IntegerMixed mode = Numerics.Unpack.IntegerMixed.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Byte.ToInt(mode));
|
||||
}
|
||||
|
||||
public static int3 Unpack(in short3 vector, Unpack.Integer mode = Numerics.Unpack.Integer.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Short.ToInt(mode));
|
||||
}
|
||||
|
||||
public static int3 Unpack(in ushort3 vector, Unpack.IntegerMixed mode = Numerics.Unpack.IntegerMixed.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.UShort.ToInt(mode));
|
||||
}
|
||||
|
||||
public static int3 Pack(in uint3 vector, Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast)
|
||||
{
|
||||
return Pack(vector, PackUtils.UInt.ToInt(mode));
|
||||
}
|
||||
|
||||
public static int3 Pack(in float3 vector, Pack.Float mode = Numerics.Pack.Float.Truncate)
|
||||
{
|
||||
return Pack(vector, PackUtils.Float.ToInt(mode));
|
||||
}
|
||||
|
||||
public static int3 Pack(in double3 vector, Pack.Float mode = Numerics.Pack.Float.Truncate)
|
||||
{
|
||||
return Pack(vector, PackUtils.Double.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<sbyte3> source,
|
||||
Span<int3> destination,
|
||||
Func<sbyte, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<byte3> source,
|
||||
Span<int3> destination,
|
||||
Func<byte, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<short3> source,
|
||||
Span<int3> destination,
|
||||
Func<short, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<ushort3> source,
|
||||
Span<int3> destination,
|
||||
Func<ushort, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<uint3> source,
|
||||
Span<int3> destination,
|
||||
Func<uint, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<float3> source,
|
||||
Span<int3> destination,
|
||||
Func<float, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<double3> source,
|
||||
Span<int3> destination,
|
||||
Func<double, int> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<sbyte3> source,
|
||||
Span<int3> destination,
|
||||
Unpack.Integer mode = Numerics.Unpack.Integer.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.SByte.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<byte3> source,
|
||||
Span<int3> destination,
|
||||
Unpack.IntegerMixed mode = Numerics.Unpack.IntegerMixed.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.Byte.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<short3> source,
|
||||
Span<int3> destination,
|
||||
Unpack.Integer mode = Numerics.Unpack.Integer.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.Short.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void UnpackSpan(
|
||||
in ReadOnlySpan<ushort3> source,
|
||||
Span<int3> destination,
|
||||
Unpack.IntegerMixed mode = Numerics.Unpack.IntegerMixed.Cast
|
||||
)
|
||||
{
|
||||
UnpackSpan(source, destination, PackUtils.UShort.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<uint3> source,
|
||||
Span<int3> destination,
|
||||
Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.UInt.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<float3> source,
|
||||
Span<int3> destination,
|
||||
Pack.Float mode = Numerics.Pack.Float.Truncate
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Float.ToInt(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<double3> source,
|
||||
Span<int3> destination,
|
||||
Pack.Float mode = Numerics.Pack.Float.Truncate
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Double.ToInt(mode));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue