408 B
408 B
OpenGLTextureUnitAllocator::Shutdown
void Shutdown();
作用
释放所有已分配 texture unit,并清空分配器内部状态。
当前实现行为
- 遍历
[0, m_maxUnits)。 - 对每个已分配槽位调用 Free。
- 然后清空
m_allocated、m_boundTextures,并把m_maxUnits设为0。