docs: update RHI API docs
This commit is contained in:
@@ -4,10 +4,30 @@
|
||||
virtual void Shutdown() = 0;
|
||||
```
|
||||
|
||||
释放管线状态对象资源。
|
||||
关闭并释放管线状态资源。此方法用于在管线状态不再需要时进行清理工作,释放底层图形 API 分配的资源。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**线程安全:** ❌
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
#include "XCEngine/RHI/RHIPipelineState.h"
|
||||
|
||||
class MyRenderer {
|
||||
void ReleasePipeline(RHIPipelineState* pipeline) {
|
||||
if (pipeline) {
|
||||
pipeline->Shutdown();
|
||||
}
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [RHIPipelineState 总览](pipeline-state.md) - 返回类总览
|
||||
- [RHIPipelineState](pipeline-state.md) - 返回类总览
|
||||
|
||||
Reference in New Issue
Block a user