12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 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));
- }
-
- }
- }
|