29 lines
581 B
Markdown
29 lines
581 B
Markdown
|
|
# RHIPipelineState::RHIPipelineState
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
RHIPipelineState() = default;
|
||
|
|
```
|
||
|
|
|
||
|
|
默认构造函数,创建空的 RHIPipelineState 对象。
|
||
|
|
|
||
|
|
**参数:** 无
|
||
|
|
|
||
|
|
**返回:** 无
|
||
|
|
|
||
|
|
**线程安全:** ✅
|
||
|
|
|
||
|
|
**复杂度:** O(1)
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
// 通过设备创建管线状态
|
||
|
|
RHIPipelineState* pipelineState = device->CreatePipelineState(desc);
|
||
|
|
// pipelineState 现在是一个有效的管线状态引用
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [RHIPipelineState 总览](pipeline-state.md) - 返回类总览
|
||
|
|
- [CreatePipelineState](../device/create-pipeline-state.md) - 创建管线状态
|