docs: 简化README,移除冗余内容

- 移除RHI单元测试详细说明章节
- 移除测试覆盖表中的重复项
- 添加tests/RHI/unit/目录到项目结构
This commit is contained in:
2026-03-23 18:57:09 +08:00
parent 140c8b8bcc
commit 66f013a4fc

View File

@@ -205,6 +205,7 @@ XCEngine/
│ ├── Scene/ # 场景测试
│ ├── Resources/ # 资源管理测试
│ └── RHI/ # RHI 抽象层测试
│ ├── unit/ # RHI 抽象层测试
│ ├── OpenGL/ # OpenGL 后端测试
│ │ ├── unit/ # 单元测试 (14)
│ │ └── integration/ # 集成测试 (5)
@@ -396,24 +397,6 @@ XCEngine 采用 RHIRender Hardware Interface抽象层设计支持多渲
- **OpenGL 后端**: OpenGL 4.6+ 支持
- **D3D12 后端**: DirectX 12 支持
#### 单元测试
RHI 抽象层拥有独立的单元测试框架,位于 `tests/RHI/unit/`
```bash
# 构建 RHI 抽象层测试
cmake --build . --target rhi_tests --config Debug
# 运行测试
./build/tests/RHI/unit/Debug/rhi_tests.exe
```
| 测试目标 | 说明 |
|----------|------|
| rhi_tests | RHI 抽象层通用测试 |
| rhi_opengl_tests | OpenGL 后端测试 |
| rhi_d3d12_tests | D3D12 后端测试 |
## 测试覆盖
| 模块 | 测试用例数 |
@@ -427,7 +410,6 @@ cmake --build . --target rhi_tests --config Debug
| Resources | 4+ |
| RHI (OpenGL) | 41 (unit 14 + integration 5) |
| RHI (D3D12) | 23 (unit 15 + integration 8) |
| RHI (抽象层) | 69 (unit) |
## mvs 示例程序