Unity-Technologies / NativeRenderingPlugin

C++ Rendering Plugin example for Unity
https://docs.unity3d.com/Manual/NativePluginInterface.html
MIT License
815 stars 163 forks source link

No REAL Documentation? #17

Open gregee123 opened 2 years ago

gregee123 commented 2 years ago

Since info provided here and at:

https://docs.unity3d.com/Manual/NativePluginInterface.html

is extremely scarce I started a thread at Unity forum:

https://forum.unity.com/threads/native-plugin-documentation-is-lacking.1220007/

Is IUnityInterface actually meant to be used at any professional capacity or was it meant for enthusiast to try and deduce everything from header files and very simple examples?

At one point in the Vulkan example it says:

// can't use GPU transfer here because is not marked as transfer src

No part of the documentations actually mentions what mode of access is supported by all the different resources in all the APIs (dx11, dx12, vulkan etc). Are people just supposed to experiment and see what won't crash? Is it even possible to access any kind of Debug Layers when working on the plugin to receive any meaningful feedback?

I don't expect any replies but hope this post will help other devs to get an idea of what they are getting into.