Firstborn/Library/PackageCache/com.unity.burst@1.7.3/Tests/Runtime/Shared/090-Vectors-Doubles.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

49 lines
1.4 KiB
C#

using Burst.Compiler.IL.Tests.Helpers;
using Unity.Mathematics;
namespace Burst.Compiler.IL.Tests
{
internal partial class VectorsDoubles
{
// ---------------------------------------------------
// double4
// ---------------------------------------------------
[TestCompiler(DataRange.Standard)]
public static double Double4Int(int a)
{
return Vectors.ConvertToDouble(new double4(a));
}
[TestCompiler(DataRange.Standard)]
public static double Double4Double3Double(double x)
{
return Vectors.ConvertToDouble(new double4(new double3(x), 5.0f));
}
[TestCompiler(DataRange.Standard)]
public static double Double4Double2Double2(double x)
{
return Vectors.ConvertToDouble(new double4(new double2(x), new double2(5.0f)));
}
[TestCompiler(DataRange.Standard)]
public static double Double44Doubles(double a)
{
return Vectors.ConvertToDouble(new double4(1.0f, 2.0f, 3.0f + a, 4.0f));
}
[TestCompiler(DataRange.Standard)]
public static double Double4Double(double a)
{
return Vectors.ConvertToDouble(new double4(a));
}
[TestCompiler(DataRange.Standard)]
public static double Double4Int4(ref int4 a)
{
return Vectors.ConvertToDouble(new double4(a));
}
}
}