FBO rendering

Started by
1 comment, last by 7Days 17 years, 11 months ago
Hi, My question is about rendering. I would like to pass the color I calculate in y fragment shader, directly to the CPU. I do not want it to be copy in the framebuffer. My problem is if I use a FBO, I do not have access to it ouside the GPU. I would like for example to use a FBO, and so copy the result of my fragment shader into an array in my CPU. Is it possoble? Because OpenGL is supposed to draw in the fragment buffer. But that is what I want to avoid. Indeed, I can do a gkReadPixel to pass from the fragment buffer to an array in the CPU, but it cost me a read and a write, so that means bus transit.... So I would like to be able to write directly on an array in my CPU.
Advertisement
Basically, you can't.
The GPU targets its local ram, so you have to read back somewhere along the line to get at the data if you want to use it on the CPU.
Thanks,

That is what I thought....
I will use sth like glReadBuffer, but it will cost me a lot....:(

This topic is closed to new replies.

Advertisement