Add OpenGL triangle integration test with GLSL shaders

- Add tests/RHI/OpenGL/integration/triangle/ with main.cpp, CMakeLists.txt
- Add GLSL shaders (triangle.vert, triangle.frag) for vertex/fragment shading
- Use OpenGLVertexArray, OpenGLBuffer, OpenGLShader, OpenGLPipelineState
- Disable depth test to allow 2D triangle rendering
- GT.ppm reused from D3D12 triangle test (0% diff)
This commit is contained in:
2026-03-22 02:30:52 +08:00
parent 3357de85c9
commit f8e7edd2c1
6 changed files with 280 additions and 0 deletions

View File

@@ -7,3 +7,4 @@ find_package(Python3 REQUIRED)
enable_testing()
add_subdirectory(minimal)
add_subdirectory(triangle)