docs: update RHI API docs
This commit is contained in:
@@ -6,10 +6,20 @@ virtual void* GetNativeHandle() = 0;
|
||||
|
||||
获取原生 API 句柄。
|
||||
|
||||
**返回:** 原生管线布局句柄
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 原生管线布局句柄(类型为 `void*`,需要根据实际图形API进行类型转换)
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
## 示例代码
|
||||
|
||||
```cpp
|
||||
// 获取 D3D12 管线布局句柄
|
||||
void* nativeHandle = pipelineLayout->GetNativeHandle();
|
||||
// D3D12PipelineLayout* d3d12Layout = static_cast<D3D12PipelineLayout*>(nativeHandle);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [RHIPipelineLayout 总览](pipeline-layout.md) - 返回类总览
|
||||
|
||||
Reference in New Issue
Block a user