- 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
37 lines
721 B
Markdown
37 lines
721 B
Markdown
# D3D12RenderTargetView::CreateDesc
|
||
|
||
## 函数签名
|
||
|
||
```cpp
|
||
static D3D12_RENDER_TARGET_VIEW_DESC CreateDesc(Format format, D3D12_RTV_DIMENSION dimension = D3D12_RTV_DIMENSION_TEXTURE2D)
|
||
```
|
||
|
||
## 中文描述
|
||
|
||
创建渲染目标视图描述符。
|
||
|
||
## 参数
|
||
|
||
| 参数 | 类型 | 描述 |
|
||
|------|------|------|
|
||
| `format` | `Format` | 资源格式 |
|
||
| `dimension` | `D3D12_RTV_DIMENSION` | 视图维度(默认 TEXTURE2D) |
|
||
|
||
## 返回值
|
||
|
||
`D3D12_RENDER_TARGET_VIEW_DESC` - 渲染目标视图描述符
|
||
|
||
## 复杂度
|
||
|
||
O(1)
|
||
|
||
## 示例
|
||
|
||
```cpp
|
||
D3D12_RENDER_TARGET_VIEW_DESC desc = D3D12RenderTargetView::CreateDesc(Format::R8G8B8A8_UNorm);
|
||
```
|
||
|
||
## 相关文档
|
||
|
||
- [D3D12RenderTargetView](render-target-view.md) - 类总览
|