- Home /
Decoding a video on the GPU
I am using a video to create a 3D texture for a particular effect that I am creating. Currently, this is all being done in a C# script - I step through each frame of video at runtime, create a Texture3D and then upload that to the GPU. This gives me pixel level access to the entire video so that it can be used in a shader, but it quite time-consuming (the texture upload has to happen on the main thread), as well as being heavy on GPU texture memory.
What I would really like to do is to send the video file itself to the GPU and let that handle the video decoding at runtime. NVIDIA GPUs support this sort of thing, but does anyone know if that functionality is exposed via Unity, through a shader for example?
@bruceweir1 I'm interest for your solution on that ?!