Rename README.md to AGENT.md for both D3D12 and OpenGL tests

This commit is contained in:
2026-03-16 15:57:32 +08:00
parent 722b6b86ba
commit 9c29cfa0a6
2 changed files with 54 additions and 0 deletions

54
tests/OpenGL/AGENT.md Normal file
View File

@@ -0,0 +1,54 @@
# OpenGL Test Agent Instructions
## Quick Start
```bash
# Build
cmake --build build --config Debug --target XCRender
# Run test
./build/tests/OpenGL/Debug/run.bat
# Or manually:
cd build/tests/OpenGL/Debug
XCRender.exe
python compare_ppm.py screenshot.ppm GT.ppm 5
```
## Test Details
- **Resolution**: 1280x720
- **Screenshot Frame**: 30
- **Reference Image**: GT.ppm
- **Comparison Threshold**: 5 pixels
## Build Target
- Target name: `XCRender`
- Output: `build/tests/OpenGL/Debug/XCRender.exe`
## Test Output
- Log file: `OpenGL_engine_log.txt`
- Screenshot: `screenshot.ppm`
## Dependencies
- GLFW 3.3
- GLAD
- Assimp
- GLM
- stb_image
## Resources
- Model: `res/models/backpack/backpack.obj`
- Shaders: `Shaders/vertexshader.glsl`, `Shaders/fragmentshader.glsl`
## Troubleshooting
| Issue | Solution |
|-------|----------|
| Black screen | Check shader compilation errors in log |
| No textures | Verify res/models/ directory exists |
| Model not loading | Check model file path |