Files
XCSDD/docs/api/rhi/opengl/buffer/bind-base.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

399 B

OpenGLBuffer::BindBase

void BindBase(unsigned int target, unsigned int index) const

将缓冲区绑定到固定的 binding point。

参数:

  • target - OpenGL target (如 GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER)
  • index - binding point 索引

示例:

buffer.BindBase(GL_UNIFORM_BUFFER, 0);

相关文档