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:
53
docs/api/rhi/d3d12/pipeline-state/create-desc.md
Normal file
53
docs/api/rhi/d3d12/pipeline-state/create-desc.md
Normal file
@@ -0,0 +1,53 @@
|
||||
# D3D12PipelineState::CreateDesc
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
static D3D12_GRAPHICS_PIPELINE_STATE_DESC CreateDesc(
|
||||
ID3D12RootSignature* rootSignature,
|
||||
const D3D12_SHADER_BYTECODE& vs,
|
||||
const D3D12_SHADER_BYTECODE& ps,
|
||||
const D3D12_SHADER_BYTECODE& gs,
|
||||
uint32_t inputElementCount,
|
||||
const D3D12_INPUT_ELEMENT_DESC* inputElements)
|
||||
```
|
||||
|
||||
## 中文描述
|
||||
|
||||
创建图形管线状态描述符,包含着色器和输入布局信息。
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
| `rootSignature` | `ID3D12RootSignature*` | 根签名指针 |
|
||||
| `vs` | `D3D12_SHADER_BYTECODE` | 顶点着色器字节码 |
|
||||
| `ps` | `D3D12_SHADER_BYTECODE` | 像素着色器字节码 |
|
||||
| `gs` | `D3D12_SHADER_BYTECODE` | 几何着色器字节码 |
|
||||
| `inputElementCount` | `uint32_t` | 输入元素数量 |
|
||||
| `inputElements` | `D3D12_INPUT_ELEMENT_DESC*` | 输入元素描述数组 |
|
||||
|
||||
## 返回值
|
||||
|
||||
`D3D12_GRAPHICS_PIPELINE_STATE_DESC` - 管线状态描述符
|
||||
|
||||
## 复杂度
|
||||
|
||||
O(1)
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12_GRAPHICS_PIPELINE_STATE_DESC psoDesc = D3D12PipelineState::CreateDesc(
|
||||
rootSignature->GetRootSignature(),
|
||||
vsBytecode,
|
||||
psBytecode,
|
||||
gsBytecode,
|
||||
inputElementCount,
|
||||
inputElements);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12PipelineState](pipeline-state.md) - 类总览
|
||||
- [D3D12PipelineState::CreateInputElement](create-input-element.md) - 创建输入元素
|
||||
Reference in New Issue
Block a user