Files
XCEngine/docs/api/rhi/pipeline-layout/get-native-handle.md
2026-03-20 02:35:45 +08:00

26 lines
559 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RHIPipelineLayout::GetNativeHandle
```cpp
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) - 返回类总览