Singularity/Library/PackageCache/com.unity.burst@1.8.4/Tests/Runtime/Shared/090-Vectors-Doubles.cs

49 lines
1.4 KiB
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
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));
}
}
}