Let's say I have this method:
[BurstCompile]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int2 QuantizeToCell(float2 point, float2 cellSize) => (int2)math.floor(point * cellSize);
When i call this method from a monobehaviour, what happens? Does it run the c#? Does it switch to burst and run that? Does it only run burst code when called from a bursted job?
This is a simple operation, so I wonder if switching to burst and back is more expensive than running this in only c#, so would I need to make two methods and tag one with a burst discard?