I have generated 2D Array of data with Cuda kernel and values in the array are just 1 or 0 s. Now I would like to visualize this data like a texture mapped on a polygon where 0s means black, 1s means white. I dont want to copy data from device to host and generate a texture mapped polygon and then visualize it with OpenGL etc. Is there any sample for visualizing such device data just through device memory?
I have just found the keyword which leads me to the solution
cudaGLMapBufferObject
Thanks
Can u give me a small portion of data code, how u vizualized your data.
thanks
The “simpleGL” sample in the SDK shows how to visualize data generated by CUDA as vertex data.
The “postProcessGL” sample shows how to transfer images data back and forth between OpenGL and CUDA.