sonkanit

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

Discussion created by sonkanit on Mar 26, 2010
Latest reply on Apr 2, 2010 by libai

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.

Outcomes