From 9c29cfa0a6a069febfe07604026a05574b9c0faf Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Mon, 16 Mar 2026 15:57:32 +0800 Subject: [PATCH] Rename README.md to AGENT.md for both D3D12 and OpenGL tests --- tests/D3D12/{README.md => AGENT.md} | 0 tests/OpenGL/AGENT.md | 54 +++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) rename tests/D3D12/{README.md => AGENT.md} (100%) create mode 100644 tests/OpenGL/AGENT.md diff --git a/tests/D3D12/README.md b/tests/D3D12/AGENT.md similarity index 100% rename from tests/D3D12/README.md rename to tests/D3D12/AGENT.md diff --git a/tests/OpenGL/AGENT.md b/tests/OpenGL/AGENT.md new file mode 100644 index 00000000..85152b16 --- /dev/null +++ b/tests/OpenGL/AGENT.md @@ -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 |