Hello !
I’m here to ask you some help because i’m a bit lost for the moment
Here is my situation :
I have developed a native plugin in c/cpp that decode video using FFMPEG and SDL.
For each frame, i have an AVFrame (struct that contains information of each frame of a video) that i bind using opengl. the data of a frame and the pointer of a texture obtained from unity using the function GetNativeTexturePtr.
this is my actual situation, which is working really fine !
In this case i have to use the opengl graphic API in the player settings in Unity.
I need to change my code in order to support DirectX 11, so that i will be able in integrate the Oculus SDK and i wont have obsolete opengl code in my native plugin.
to be clear : My function that does the binding between the texture pointer from unity and the data of each frame that i got from my code using ffmpeg need to be changed in order to be available in a DirectX grapic api context in unity.
How to set value of a texture pointer using directx code ?
Could you please guide me for this modification ?
I’m using unity 5.2.4 32 bits and Visual Studio.
Thank you for your help !