Files
XCEngine/docs/api/rhi/d3d12/shader-resource-view/create-desc.md
ssdfasd 82cf147817 docs: 修正 API 文档准确性 (第四轮检查)
修复问题:
- containers: HashMap 实现描述修正
- debug: XE_LOG 宏参数顺序修正
- memory: ProxyAllocator 统计示例修正, PoolAllocator allocate size 检查描述
- resources: ResourceManager 缺失 UnloadGroup 方法
- rhi: D3D12 格式枚举名称修正, Texture Format 枚举补全, ResourceStates 补充
- threading: TaskGroup GetProgress/Wait/Cancel 实现限制说明
2026-03-19 00:43:16 +08:00

38 lines
830 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# D3D12ShaderResourceView::CreateDesc
## 函数签名
```cpp
static D3D12_SHADER_RESOURCE_VIEW_DESC CreateDesc(Format format, D3D12_SRV_DIMENSION dimension = D3D12_SRV_DIMENSION_TEXTURE2D, uint32_t mipLevels = 1)
```
## 中文描述
创建着色器资源视图描述符。
## 参数
| 参数 | 类型 | 描述 |
|------|------|------|
| `format` | `Format` | 资源格式 |
| `dimension` | `D3D12_SRV_DIMENSION` | 视图维度(默认 TEXTURE2D |
| `mipLevels` | `uint32_t` | Mipmap 级别数量(默认 1 |
## 返回值
`D3D12_SHADER_RESOURCE_VIEW_DESC` - 着色器资源视图描述符
## 复杂度
O(1)
## 示例
```cpp
D3D12_SHADER_RESOURCE_VIEW_DESC desc = D3D12ShaderResourceView::CreateDesc(Format::R8G8B8A8_UNorm);
```
## 相关文档
- [D3D12ShaderResourceView](shader-resource-view.md) - 类总览