Commit Graph

2 Commits

Author SHA1 Message Date
5d9cd3ad30 chore: Add MIT License and fix Windows platform support
- Add MIT License file for open source release
- Update README.md to reference LICENSE file
- Fix test_bgfx_triangle.cpp: Add Windows platform support (_WIN32)
- Fix test_bgfx_sprites.cpp: Add Windows platform support (_WIN32)

These visual tests now support both Windows (wmi.info.win.window)
and Linux (wmi.info.x11.window) platforms.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 08:12:43 +07:00
1443c1209e feat(BgfxRenderer): Complete Phase 2-3 with shaders and triangle rendering
Phase 2 - RHI Layer:
- Fix Command struct default constructor for union with non-trivial types
- Add missing mutex includes in ResourceCache.cpp
- Fix const_cast for getChildReadOnly in SceneCollector

Phase 3 - Shaders & Visual Test:
- Add ShaderManager for centralized shader loading
- Embed pre-compiled shaders (OpenGL, Vulkan, DX11, Metal)
- Add test_20_bgfx_rhi: 23 unit tests for RHI components
- Add test_21_bgfx_triangle: visual test rendering colored triangle

Test results:
- RHI unit tests: 23/23 passing
- Visual test: ~567 FPS with Vulkan renderer

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 16:43:17 +08:00