14 Replies Latest reply on Apr 2, 2010 5:44 AM by libai

    What is the best way to write data into GL renderbuffer?


      With GL interop, I can create cl_mem object from GL renderbuffer, but I don't really know how to write the data to the buffer. I tried to pass the mem object to uchar4* in kernel but it crashed.


      As long as I know, image2d_t is still not supported by ATI stream 2.01. Please give me some suggestion on how to write the data to GL renderbuffer. I don't want to read data from cl buffer and then copy it to renderbuffer.


      Thank you in advance.