GL_TEXTURE_BINDING_2D 用于 glBindImageTexture?
GL_TEXTURE_BINDING_2D for glBindImageTexture?
有没有获取当前绑定图片纹理的函数?
我可以使用 glGetIntegerv(GL_TEXTURE_BINDING_2D, &bound_texture);
.
获取 glBindTexture
当前绑定的纹理
glBindImageTexture
是否存在类似的东西?
§ 8.26.1 Image Unit Queries
The state required for each image unit is summarized in table 23.45
and may be
queried using the indexed query commands in that table. The initial values of
image unit state are described above for BindImageTexture.
您可能需要的枚举是 GL_IMAGE_BINDING_NAME
。
有没有获取当前绑定图片纹理的函数?
我可以使用 glGetIntegerv(GL_TEXTURE_BINDING_2D, &bound_texture);
.
glBindTexture
当前绑定的纹理
glBindImageTexture
是否存在类似的东西?
§ 8.26.1 Image Unit Queries
The state required for each image unit is summarized in table
23.45
and may be queried using the indexed query commands in that table. The initial values of image unit state are described above forBindImageTexture.
您可能需要的枚举是 GL_IMAGE_BINDING_NAME
。