Files
XCEngine/docs/api/rhi/opengl/texture/bind.md
2026-03-20 02:35:45 +08:00

386 B
Raw Blame History

OpenGLTexture::Bind

void Bind(int slot = 0) const

将纹理绑定到纹理单元。

参数:

  • slot - 纹理单元槽位(默认为 0

示例:

texture.Bind(0);  // 绑定到纹理单元 0

相关文档