26 lines
689 B
Markdown
26 lines
689 B
Markdown
|
|
# RHI Integration Tests
|
||
|
|
|
||
|
|
This folder will contain integration tests for the RHI abstraction layer.
|
||
|
|
|
||
|
|
Integration tests verify the interaction between multiple RHI components working together.
|
||
|
|
|
||
|
|
## Planned Tests
|
||
|
|
|
||
|
|
- Full render pipeline test (device -> swap chain -> command list -> present)
|
||
|
|
- Multi-threaded command recording
|
||
|
|
- Resource state transitions across multiple objects
|
||
|
|
- Frame synchronization with fences
|
||
|
|
|
||
|
|
## Running Tests
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Build once, run against different backends
|
||
|
|
cmake --build build --config Debug
|
||
|
|
|
||
|
|
# Test D3D12 backend
|
||
|
|
RHI_BACKEND=D3D12 ./build/tests/RHI/unit/rhi_unit_tests.exe
|
||
|
|
|
||
|
|
# Test OpenGL backend
|
||
|
|
RHI_BACKEND=OpenGL ./build/tests/RHI/unit/rhi_unit_tests.exe
|
||
|
|
```
|