本站(GPGPU programming with OpenGL ES 2.0)讲如何用opengl es2.0做gpgpu 我的问题是如何检索的值 gl_FragColor 回到 cpu 站点(主机)?
片段着色器
varying vec2 fragTexCoord;
void main() {
gl_FragColor = texture2D(tex, fragTexCoord);
}
CPU 站点
//.......
glDrawArrays(GL_TRIANGLES, 0, 3);
//How could I get the value after draw?
最佳答案
The problem of mine is how to retrieve the value of gl_FragColor back to the cpu site(host)?
关于c++ - 检索 gl_FragColor 的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16653848/