29 lines
698 B
Markdown
29 lines
698 B
Markdown
# BuiltinObjectIdOutlinePass::GetShaderPath
|
|
|
|
**命名空间**: `XCEngine::Rendering::Passes`
|
|
|
|
**类型**: `method`
|
|
|
|
**头文件**: `XCEngine/Rendering/Passes/BuiltinObjectIdOutlinePass.h`
|
|
|
|
## 签名
|
|
|
|
```cpp
|
|
const Containers::String& GetShaderPath() const;
|
|
```
|
|
|
|
## 作用
|
|
|
|
返回这个 outline pass 当前记录的 shader 路径。
|
|
|
|
## 当前语义
|
|
|
|
- 返回的是内部 `m_shaderPath` 的常量引用。
|
|
- 构造后或调用 [SetShaderPath](SetShaderPath.md) 后,这里反映的就是下一次初始化将使用的路径。
|
|
- 当前值允许为空;空路径本身不是非法状态,但后续资源创建会失败。
|
|
|
|
## 相关文档
|
|
|
|
- [SetShaderPath](SetShaderPath.md)
|
|
- [Render](Render.md)
|