docs: sync rendering pass execution docs
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# BuiltinObjectIdPass::BuildInputLayout
|
||||
|
||||
```cpp
|
||||
static RHI::InputLayoutDesc BuildInputLayout();
|
||||
```
|
||||
|
||||
## 行为说明
|
||||
|
||||
当前实现只声明一个顶点元素:
|
||||
|
||||
- `POSITION`
|
||||
- `semanticIndex = 0`
|
||||
- `Format::R32G32B32_Float`
|
||||
- 偏移取自 `Resources::StaticMeshVertex::position`
|
||||
|
||||
## 当前语义
|
||||
|
||||
- object-id pass 只依赖顶点位置,不读取法线、UV、切线或颜色。
|
||||
- 这和当前 shader 语义一致,因为它只需要做几何覆盖并输出 object-id 颜色。
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [BuiltinObjectIdPass](BuiltinObjectIdPass.md)
|
||||
- [Render](Render.md)
|
||||
Reference in New Issue
Block a user