开发者

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

开发者 https://www.devze.com 2023-03-16 14:43 出处:网络
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 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

精彩评论

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

关注公众号