OpenGL question
Posted: Sun Apr 14, 2013 2:24 am
When you create a VBO with OpenGL and buffer vertex data to the graphics card via glBufferData(), is it possible to then buffer the data off the card after applying a shader?
I basically want to use OpenGL shaders to run array processing. Therefore I need input and output. I am aware that you can declare out variables in GLSL but haven't come across any examples where they use GLSL to buffer data to the GPU run a calculation and then buffer it back to use it. I know there is a way but unsure of what functions to use.
Any help on this is appreciated.
I basically want to use OpenGL shaders to run array processing. Therefore I need input and output. I am aware that you can declare out variables in GLSL but haven't come across any examples where they use GLSL to buffer data to the GPU run a calculation and then buffer it back to use it. I know there is a way but unsure of what functions to use.
Any help on this is appreciated.
