Files
XCEngine/docs/api/XCEngine/RHI/OpenGL/OpenGLTextureUnitAllocator/Shutdown.md

408 B
Raw Blame History

OpenGLTextureUnitAllocator::Shutdown

void Shutdown();

作用

释放所有已分配 texture unit并清空分配器内部状态。

当前实现行为

  • 遍历 [0, m_maxUnits)
  • 对每个已分配槽位调用 Free
  • 然后清空 m_allocatedm_boundTextures,并把 m_maxUnits 设为 0

相关文档