Burst methods?

To use burst I HAVE to make a job or there is a way to make a burst method?

https://docs.unity3d.com/Packages/com.unity.burst@1.0/api/Unity.Burst.BurstCompileAttribute.html
The burst compile attribute can be on a method, you don’t have to make a job for it.

Well, not just simple like this, in regular case it will do nothing. For Direct burst calls, there are some notes in documentation (and they follow the same rules as Function pointer calls)
https://docs.unity3d.com/Packages/com.unity.burst@1.7/manual/docs/CSharpLanguageSupport_Lang.html#directly-calling-burst-compiled-code

2 Likes

Nice, so there are some limitations, but otherwise I don’t need the Job.Run() boilerplate.