如何访问默认帧缓冲区的纹理

时间:2019-10-23 05:06:11

标签: opengl glsl

当我创建自己的帧缓冲区时,就是这个过程

glGenerateBuffers() // generate a buffer
glCreateTextures()  // create a texture
bind the texture to the buffer
once we have rendered in the framebuffer we can use the texture.

默认的帧缓冲区是否有可用的纹理,我们可以访问它吗?

1 个答案:

答案 0 :(得分:3)

default framebuffer使用的缓冲区是在上下文创建时定义的,并由负责创建默认帧缓冲区引用的上下文的任何机制所拥有。除了作为默认帧缓冲区的一部分之外,您不能以其他任何方式访问它们(除非上下文创建机制本身为您提供了一种访问方式)。

相关问题