Firstborn/Library/PackageCache/com.unity.burst@1.8.4/Tests/Runtime/Shared/090-Vectors-HashCodes.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

43 lines
1.2 KiB
C#

using Burst.Compiler.IL.Tests.Helpers;
using NUnit.Framework;
using Unity.Mathematics;
namespace Burst.Compiler.IL.Tests
{
[TestFixture]
internal partial class VectorsHashCodes
{
// TODO: Add tests for Uint4/3/2, Bool4/3/2
[TestCompiler(DataRange.Standard)]
public static int Float4GetHashCode(ref float4 a)
{
return a.GetHashCode();
}
[TestCompiler(DataRange.Standard)]
public static int Float3GetHashCode(ref float3 a)
{
return a.GetHashCode();
}
[TestCompiler(DataRange.Standard)]
public static int Float2GetHashCode(ref float2 a)
{
return a.GetHashCode();
}
[TestCompiler(DataRange.Standard)]
public static int Int4GetHashCode(ref int4 a)
{
return a.GetHashCode();
}
[TestCompiler(DataRange.Standard)]
public static int Int3GetHashCode(ref int3 a)
{
return a.GetHashCode();
}
[TestCompiler(DataRange.Standard)]
public static int Int2GetHashCode(ref int2 a)
{
return a.GetHashCode();
}
}
}