mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +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/sbyte3/sbyte3.pack.gen.cs
Normal file
210
brutal.numerics/Brutal.Numerics/Vector/sbyte3/sbyte3.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 sbyte3
|
||||
{
|
||||
public static sbyte3 Pack(in byte3 vector, Func<byte, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in short3 vector, Func<short, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in ushort3 vector, Func<ushort, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in int3 vector, Func<int, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in uint3 vector, Func<uint, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in float3 vector, Func<float, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in double3 vector, Func<double, sbyte> elementConverter)
|
||||
{
|
||||
VectorPack.Pack(vector, out sbyte3 result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in byte3 vector, Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast)
|
||||
{
|
||||
return Pack(vector, PackUtils.Byte.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in short3 vector, Pack.Integer mode = Numerics.Pack.Integer.Cast)
|
||||
{
|
||||
return Pack(vector, PackUtils.Short.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in ushort3 vector, Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast)
|
||||
{
|
||||
return Pack(vector, PackUtils.UShort.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in int3 vector, Pack.Integer mode = Numerics.Pack.Integer.Cast)
|
||||
{
|
||||
return Pack(vector, PackUtils.Int.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in uint3 vector, Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast)
|
||||
{
|
||||
return Pack(vector, PackUtils.UInt.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in float3 vector, Pack.Float mode = Numerics.Pack.Float.Truncate)
|
||||
{
|
||||
return Pack(vector, PackUtils.Float.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static sbyte3 Pack(in double3 vector, Pack.Float mode = Numerics.Pack.Float.Truncate)
|
||||
{
|
||||
return Pack(vector, PackUtils.Double.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<byte3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<byte, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<short3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<short, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<ushort3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<ushort, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<int3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<int, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<uint3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<uint, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<float3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<float, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<double3> source,
|
||||
Span<sbyte3> destination,
|
||||
Func<double, sbyte> elementConverter
|
||||
)
|
||||
{
|
||||
VectorPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<byte3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Byte.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<short3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.Integer mode = Numerics.Pack.Integer.Cast
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Short.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<ushort3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.UShort.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<int3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.Integer mode = Numerics.Pack.Integer.Cast
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Int.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<uint3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.IntegerMixed mode = Numerics.Pack.IntegerMixed.Cast
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.UInt.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<float3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.Float mode = Numerics.Pack.Float.Truncate
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Float.ToSByte(mode));
|
||||
}
|
||||
|
||||
public static void PackSpan(
|
||||
in ReadOnlySpan<double3> source,
|
||||
Span<sbyte3> destination,
|
||||
Pack.Float mode = Numerics.Pack.Float.Truncate
|
||||
)
|
||||
{
|
||||
PackSpan(source, destination, PackUtils.Double.ToSByte(mode));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue