开发者

Getting vertex-shader transformed geometry back from the gpu in OpenGL

I would like to generate vertex geometry on the cpu and then pass it to开发者_Go百科 the GPU and run a number of vertex shaders on the vertices and then get these transformed vertices back to the cpu. I dont want to render the vertices or run any fragment shaders.

Is it possible to get the vertex-shader transformed vertices back from the gpu onto the cpu? If so how?


Yes, the facility required is called "Transform Feedback Buffers". Extension to OpenGL-2 http://www.opengl.org/registry/specs/ARB/transform_feedback2.txt

Introduced to being official OpenGL functionality with OpenGL-3.0

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜