Jump to content

OpenCL: Difference between revisions

3 bytes removed ,  14 December 2020
Line 264: Line 264:
==OpenGL Interop==
==OpenGL Interop==
Setting up OpenCL/OpenGL interop is fairly complicated and very hard to debug.   
Setting up OpenCL/OpenGL interop is fairly complicated and very hard to debug.   
You will also need to manage synchronizing OpenGL/OpenCL so that aren't accessing the same memory at the same time.   
You will also need to manage synchronizing OpenGL/OpenCL so they do not access the same memory at the same time.   
If you can, just use OpenGL compute shaders rather than OpenCL to simplify your life.
If you can, just use OpenGL compute shaders rather than OpenCL to simplify your life.