Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

090-Vectors-HashCodes.cs 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Burst.Compiler.IL.Tests.Helpers;
  2. using NUnit.Framework;
  3. using Unity.Mathematics;
  4. namespace Burst.Compiler.IL.Tests
  5. {
  6. [TestFixture]
  7. internal partial class VectorsHashCodes
  8. {
  9. // TODO: Add tests for Uint4/3/2, Bool4/3/2
  10. [TestCompiler(DataRange.Standard)]
  11. public static int Float4GetHashCode(ref float4 a)
  12. {
  13. return a.GetHashCode();
  14. }
  15. [TestCompiler(DataRange.Standard)]
  16. public static int Float3GetHashCode(ref float3 a)
  17. {
  18. return a.GetHashCode();
  19. }
  20. [TestCompiler(DataRange.Standard)]
  21. public static int Float2GetHashCode(ref float2 a)
  22. {
  23. return a.GetHashCode();
  24. }
  25. [TestCompiler(DataRange.Standard)]
  26. public static int Int4GetHashCode(ref int4 a)
  27. {
  28. return a.GetHashCode();
  29. }
  30. [TestCompiler(DataRange.Standard)]
  31. public static int Int3GetHashCode(ref int3 a)
  32. {
  33. return a.GetHashCode();
  34. }
  35. [TestCompiler(DataRange.Standard)]
  36. public static int Int2GetHashCode(ref int2 a)
  37. {
  38. return a.GetHashCode();
  39. }
  40. }
  41. }