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:
39
docs/api/rhi/d3d12/root-signature/create-descriptor-range.md
Normal file
39
docs/api/rhi/d3d12/root-signature/create-descriptor-range.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# D3D12RootSignature::CreateDescriptorRange
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
static D3D12_DESCRIPTOR_RANGE CreateDescriptorRange(D3D12_DESCRIPTOR_RANGE_TYPE type, uint32_t baseShaderRegister, uint32_t numDescriptors, uint32_t registerSpace = 0)
|
||||
```
|
||||
|
||||
## 中文描述
|
||||
|
||||
创建描述符范围。
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
| `type` | `D3D12_DESCRIPTOR_RANGE_TYPE` | 描述符范围类型 |
|
||||
| `baseShaderRegister` | `uint32_t` | 基础着色器寄存器 |
|
||||
| `numDescriptors` | `uint32_t` | 描述符数量 |
|
||||
| `registerSpace` | `uint32_t` | 寄存器空间(默认 0) |
|
||||
|
||||
## 返回值
|
||||
|
||||
`D3D12_DESCRIPTOR_RANGE` - 描述符范围
|
||||
|
||||
## 复杂度
|
||||
|
||||
O(1)
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12_DESCRIPTOR_RANGE range = D3D12RootSignature::CreateDescriptorRange(D3D12_DESCRIPTOR_RANGE_TYPE_SRV, 0, 1);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12RootSignature](root-signature.md) - 类总览
|
||||
- [D3D12RootSignature::CreateDescriptorTable](create-descriptor-table.md) - 创建描述符表
|
||||
Reference in New Issue
Block a user