Unity.mathx
Unity.mathx copied to clipboard
Benchmark bitwave() against bitwave2()
[MethodImpl(IL)] public static float4 bitwave(float4 x) => floor(math.fmod(x, 2));
[MethodImpl(IL)] public static float4 bitwave2(float4 x) => (int4)x & 1;