33 lines
752 B
Markdown
33 lines
752 B
Markdown
|
|
# CameraRenderer::GetDepthOnlyPass
|
|||
|
|
|
|||
|
|
**命名空间**: `XCEngine::Rendering`
|
|||
|
|
|
|||
|
|
**类型**: `method`
|
|||
|
|
|
|||
|
|
**头文件**: `XCEngine/Rendering/CameraRenderer.h`
|
|||
|
|
|
|||
|
|
## 签名
|
|||
|
|
|
|||
|
|
```cpp
|
|||
|
|
RenderPass* GetDepthOnlyPass() const;
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
## 作用
|
|||
|
|
|
|||
|
|
返回当前 depth-only scene pass 的裸指针。
|
|||
|
|
|
|||
|
|
## 当前实现行为
|
|||
|
|
|
|||
|
|
- 这是头文件内联访问器,直接返回 `m_depthOnlyPass.get()`。
|
|||
|
|
- 不转移所有权。
|
|||
|
|
|
|||
|
|
## 注意事项
|
|||
|
|
|
|||
|
|
- 调用 [SetDepthOnlyPass](SetDepthOnlyPass.md) 之后,之前读取到的裸指针可能立刻失效。
|
|||
|
|
- 当前默认返回的通常是 builtin depth-only pass,但调用方不应把这个 API 当成“只会返回某个具体类型”的承诺。
|
|||
|
|
|
|||
|
|
## 相关文档
|
|||
|
|
|
|||
|
|
- [SetDepthOnlyPass](SetDepthOnlyPass.md)
|
|||
|
|
- [Render](Render.md)
|