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-sampler-desc.md
Normal file
38
docs/api/rhi/d3d12/root-signature/create-sampler-desc.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# D3D12RootSignature::CreateSamplerDesc
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
static D3D12_SAMPLER_DESC CreateSamplerDesc(FilterMode filter, TextureAddressMode address, float maxLOD = D3D12_FLOAT32_MAX)
|
||||
```
|
||||
|
||||
## 中文描述
|
||||
|
||||
创建采样器描述符。
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
| `filter` | `FilterMode` | 过滤模式 |
|
||||
| `address` | `TextureAddressMode` | 寻址模式 |
|
||||
| `maxLOD` | `float` | 最大 LOD(默认无限) |
|
||||
|
||||
## 返回值
|
||||
|
||||
`D3D12_SAMPLER_DESC` - 采样器描述符
|
||||
|
||||
## 复杂度
|
||||
|
||||
O(1)
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12_SAMPLER_DESC desc = D3D12RootSignature::CreateSamplerDesc(FilterMode::Anisotropic, TextureAddressMode::Wrap);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12RootSignature](root-signature.md) - 类总览
|
||||
- [D3D12RootSignature::CreateStaticSampler](create-static-sampler.md) - 创建静态采样器
|
||||
Reference in New Issue
Block a user