424 B
424 B
OpenGLSampler::Unbind
void Unbind(unsigned int unit);
解绑采样器。将指定纹理单元的采样器绑定解除,实际调用 glBindSampler(unit, 0)。
参数:
unit- 纹理单元编号,通常为 0-15
返回: 无
线程安全: ❌
复杂度: O(1)
示例:
sampler.Unbind(0);
相关文档
- OpenGLSampler 总览 - 返回类总览