#Call C function pointer inside a bursted job?
1 messages · Page 1 of 1 (latest)
hi @oblique charm! assuming you already have the IntPtr to the native c function, you should be able to create a new instance of Burst Function Pointers (https://docs.unity3d.com/Packages/com.unity.burst@1.8/manual/csharp-function-pointers.html) passing the intrptr as the first argument, and use functionpointer Invoke method to execute it inside a job 🙂.
Thank you for the quick response, would this approach also be subject to the limitations mentioned on the DLLImport and internal calls doc? https://docs.unity3d.com/Packages/com.unity.burst@1.8/manual/csharp-burst-intrinsics-dllimport.html