Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

090-Vectors-Doubles.cs 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Burst.Compiler.IL.Tests.Helpers;
  2. using Unity.Mathematics;
  3. namespace Burst.Compiler.IL.Tests
  4. {
  5. internal partial class VectorsDoubles
  6. {
  7. // ---------------------------------------------------
  8. // double4
  9. // ---------------------------------------------------
  10. [TestCompiler(DataRange.Standard)]
  11. public static double Double4Int(int a)
  12. {
  13. return Vectors.ConvertToDouble(new double4(a));
  14. }
  15. [TestCompiler(DataRange.Standard)]
  16. public static double Double4Double3Double(double x)
  17. {
  18. return Vectors.ConvertToDouble(new double4(new double3(x), 5.0f));
  19. }
  20. [TestCompiler(DataRange.Standard)]
  21. public static double Double4Double2Double2(double x)
  22. {
  23. return Vectors.ConvertToDouble(new double4(new double2(x), new double2(5.0f)));
  24. }
  25. [TestCompiler(DataRange.Standard)]
  26. public static double Double44Doubles(double a)
  27. {
  28. return Vectors.ConvertToDouble(new double4(1.0f, 2.0f, 3.0f + a, 4.0f));
  29. }
  30. [TestCompiler(DataRange.Standard)]
  31. public static double Double4Double(double a)
  32. {
  33. return Vectors.ConvertToDouble(new double4(a));
  34. }
  35. [TestCompiler(DataRange.Standard)]
  36. public static double Double4Int4(ref int4 a)
  37. {
  38. return Vectors.ConvertToDouble(new double4(a));
  39. }
  40. }
  41. }