To run some calculations from Unity I used p/Invoke to run against Optix 6.5.
There is a big refactoring happening, so we need to address the whole code base around that anyways, so I am looking into upgrading to 7 as we do. The changes in 7 would also work well with the changes we make to the software, having more control over loading assets etc.
My understanding though is that the api has become much more, complexity that was previously hidden.
Now I am wondering how to best go about this and would appreciate any input, especially from people that also know .Net/C#.
The API that I’d need to DllImport seems much bigger, so it would be a lot of work figuring this out. Or I build some wrapper in C++ that is either generic or geared towards the queries we need to run. The problem with that: I have no experience with C++ and still seems daunting.
I also looked into other options (DXR, Vulkan…), but nothing seems to be better than Optix. We just need to answer the question “can I see this or that from here”, but a few hundred million times per second.
Is there a better way to go about it that I am missing?