Firstborn/Library/PackageCache/com.unity.burst@1.7.3/Tests/Runtime/Shared/090-Vectors-Bools.cs

30 lines
773 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using Burst.Compiler.IL.Tests.Helpers;
using Unity.Mathematics;
namespace Burst.Compiler.IL.Tests
{
internal partial class VectorsBools
{
// ---------------------------------------------------
// ! operator
// ---------------------------------------------------
[TestCompiler(DataRange.Standard)]
public static int Bool4Not(ref bool4 a)
{
return Vectors.ConvertToInt(!a);
}
[TestCompiler(DataRange.Standard)]
public static int Bool3Not(ref bool3 a)
{
return Vectors.ConvertToInt(!a);
}
[TestCompiler(DataRange.Standard)]
public static int Bool2Not(ref bool2 a)
{
return Vectors.ConvertToInt(!a);
}
}
}