docs: update RHI API docs
This commit is contained in:
29
docs/api/rhi/opengl/sampler/shutdown.md
Normal file
29
docs/api/rhi/opengl/sampler/shutdown.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# OpenGLSampler::Shutdown
|
||||
|
||||
```cpp
|
||||
void Shutdown() override;
|
||||
```
|
||||
|
||||
关闭采样器。释放 OpenGL 采样器对象,调用 `glDeleteSamplers` 删除采样器并重置 ID 为 0。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
OpenGLSampler sampler;
|
||||
if (sampler.Initialize(desc)) {
|
||||
sampler.Bind(0);
|
||||
sampler.Shutdown();
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [OpenGLSampler 总览](sampler.md) - 返回类总览
|
||||
Reference in New Issue
Block a user