fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
This commit is contained in:
38
docs/api/rhi/d3d12/root-signature/create-32bit-constants.md
Normal file
38
docs/api/rhi/d3d12/root-signature/create-32bit-constants.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# D3D12RootSignature::Create32BitConstants
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
static D3D12_ROOT_PARAMETER Create32BitConstants(uint32_t shaderRegister, uint32_t num32BitValues, ShaderVisibility visibility = ShaderVisibility::All, uint32_t registerSpace = 0)
|
||||
```
|
||||
|
||||
## 中文描述
|
||||
|
||||
创建 32 位常量根参数,用于上传小量常量数据。
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
| `shaderRegister` | `uint32_t` | 着色器寄存器编号 |
|
||||
| `num32BitValues` | `uint32_t` | 32 位值的数量 |
|
||||
| `visibility` | `ShaderVisibility` | 可见性(默认 All) |
|
||||
| `registerSpace` | `uint32_t` | 寄存器空间(默认 0) |
|
||||
|
||||
## 返回值
|
||||
|
||||
`D3D12_ROOT_PARAMETER` - 根参数
|
||||
|
||||
## 复杂度
|
||||
|
||||
O(1)
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12_ROOT_PARAMETER constantsParam = D3D12RootSignature::Create32BitConstants(0, 4);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12RootSignature](root-signature.md) - 类总览
|
||||
Reference in New Issue
Block a user