Fix RHI constant binding and add sphere test
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# XCEngine 测试规范
|
||||
|
||||
最后更新:2026-03-25
|
||||
最后更新:2026-03-26
|
||||
|
||||
## 1. 目标
|
||||
|
||||
@@ -66,6 +66,7 @@ cmake --build build --config Debug --target rhi_unit_tests
|
||||
cmake --build build --config Debug --target rhi_integration_minimal
|
||||
cmake --build build --config Debug --target rhi_integration_triangle
|
||||
cmake --build build --config Debug --target rhi_integration_quad
|
||||
cmake --build build --config Debug --target rhi_integration_sphere
|
||||
```
|
||||
|
||||
### 3.3 运行
|
||||
@@ -116,6 +117,7 @@ RHI 当前分成四类测试:
|
||||
| 抽象层集成测试 | `rhi_integration_minimal` |
|
||||
| 抽象层集成测试 | `rhi_integration_triangle` |
|
||||
| 抽象层集成测试 | `rhi_integration_quad` |
|
||||
| 抽象层集成测试 | `rhi_integration_sphere` |
|
||||
| D3D12 后端单元测试 | `rhi_d3d12_tests` |
|
||||
| OpenGL 后端单元测试 | `rhi_opengl_tests` |
|
||||
| D3D12 后端集成测试 | `d3d12_minimal_test` `d3d12_triangle_test` `d3d12_quad_test` `d3d12_sphere_test` |
|
||||
@@ -123,7 +125,7 @@ RHI 当前分成四类测试:
|
||||
|
||||
说明:
|
||||
|
||||
- 抽象层集成测试目前正式包含 `minimal`、`triangle` 与 `quad`。
|
||||
- 抽象层集成测试目前正式包含 `minimal`、`triangle`、`quad` 与 `sphere`。
|
||||
|
||||
## 6. RHI 抽象层集成测试规范
|
||||
|
||||
@@ -146,6 +148,10 @@ tests/RHI/integration/
|
||||
│ ├─ CMakeLists.txt
|
||||
│ ├─ GT.ppm
|
||||
│ └─ main.cpp
|
||||
├─ sphere/
|
||||
│ ├─ CMakeLists.txt
|
||||
│ ├─ GT.ppm
|
||||
│ └─ main.cpp
|
||||
├─ compare_ppm.py
|
||||
└─ CMakeLists.txt
|
||||
```
|
||||
@@ -164,6 +170,8 @@ tests/RHI/integration/
|
||||
- `triangle_opengl.ppm`
|
||||
- `quad_d3d12.ppm`
|
||||
- `quad_opengl.ppm`
|
||||
- `sphere_d3d12.ppm`
|
||||
- `sphere_opengl.ppm`
|
||||
5. 两个后端都必须与同一张 `GT.ppm` 做比对。
|
||||
6. 新测试如果暴露抽象层缺口,应先补 RHI,再补测试。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user