docs: sync rendering pass execution docs

This commit is contained in:
2026-04-03 15:10:37 +08:00
parent d4afa022c1
commit 19bd38ab15
59 changed files with 1544 additions and 420 deletions

View File

@@ -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)