1 Reply Latest reply on Feb 25, 2010 8:56 AM by gaurav.garg

    OpenGL OpenCL interopearbility and multiple OpenGL context.

    nou

      when i create OpenGL context then OpenCL context with enabled interoperability will it work with multiple GL context?

      can i use shared buffers across all OpenGL context?

      what happend if i delete first GL context which was used in creation OpenCL context?

      creating and deleting OpenGL context can be dynamical.

        • OpenGL OpenCL interopearbility and multiple OpenGL context.
          gaurav.garg

           

          when i create OpenGL context then OpenCL context with enabled interoperability will it work with multiple GL context?


          OpenCL context is associated to a single context.

          can i use shared buffers across all OpenGL context?


          If your OS allows OpenGL object sharing across multiple contexts, you can do that. But, it has nothing to do with OpenCL, beacuse you are sharing OpenGL objects and not OpenCL.

          what happend if i delete first GL context which was used in creation OpenCL context?


          Context deletion can cause undefined behavior becuase OpenCL objects are valid as long as OpenGL objects are valid.