Add Vulkan backend sphere integration test

This commit is contained in:
2026-03-28 00:09:05 +08:00
parent b77615569c
commit a1bc8f163e
8 changed files with 862 additions and 8 deletions

View File

@@ -15,6 +15,11 @@ tests/RHI/Vulkan/
| | |- GT.ppm
| | |- main.cpp
| | \- Res/
| |- sphere/
| | |- CMakeLists.txt
| | |- GT.ppm
| | |- main.cpp
| | \- Res/
| \- minimal/
| |- CMakeLists.txt
| |- GT.ppm
@@ -37,7 +42,7 @@ tests/RHI/Vulkan/
| 类别 | target |
| --- | --- |
| Vulkan 后端单元测试 | `rhi_vulkan_tests` |
| Vulkan 后端集成测试 | `vulkan_minimal_test` `vulkan_triangle_test` `vulkan_quad_test` |
| Vulkan 后端集成测试 | `vulkan_minimal_test` `vulkan_triangle_test` `vulkan_quad_test` `vulkan_sphere_test` |
## 3. 当前覆盖
@@ -59,7 +64,7 @@ tests/RHI/Vulkan/
- `tests/RHI/unit/` 继续只承载 RHI 抽象层统一语义测试。
- `tests/RHI/Vulkan/unit/` 承载 Vulkan 专属断言、原生对象检查和需要直接调用 Vulkan API 的测试。
- `tests/RHI/Vulkan/integration/` 承载 Vulkan 后端直连场景,当前已经落地 `minimal / triangle / quad`,后续再按需要扩到 `sphere`
- `tests/RHI/Vulkan/integration/` 承载 Vulkan 后端直连场景,当前已经落地 `minimal / triangle / quad / sphere`
## 5. 推荐执行方式
@@ -67,6 +72,6 @@ tests/RHI/Vulkan/
cmake --build build --config Debug --target rhi_vulkan_tests
build\tests\RHI\Vulkan\unit\Debug\rhi_vulkan_tests.exe --gtest_brief=1
cmake --build build --config Debug --target vulkan_quad_test
ctest -C Debug -R "vulkan_(minimal|triangle|quad)_test" --test-dir build
cmake --build build --config Debug --target vulkan_sphere_test
ctest -C Debug -R "vulkan_(minimal|triangle|quad|sphere)_test" --test-dir build
```