From 69f5a1cc6c423cf6753f403dbb7e2abb4b2c9d42 Mon Sep 17 00:00:00 2001 From: StillHammer Date: Wed, 26 Nov 2025 11:55:18 +0800 Subject: [PATCH] docs: Add BgfxRenderer section to CLAUDE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- CLAUDE.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 41325c9..7f7f02d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -63,6 +63,25 @@ std::lock_guard lock2(mutex2); // DEADLOCK RISK | 15 | MemoryLeakHunter | ~135s | 200 reload cycles | | 19 | CrossSystemIntegration | ~4s | Multi-system test | +## BgfxRenderer Module +2D rendering module using bgfx. Located in `modules/BgfxRenderer/`. + +### Architecture +- **RHI Layer**: Abstracts bgfx calls (`RHIDevice.h`, `BgfxDevice.cpp`) +- **RenderGraph**: Topological sort with Kahn's algorithm for pass ordering +- **CommandBuffer**: Records commands, executed by device at frame end +- **IIO Topics**: `render:sprite`, `render:camera`, `render:debug/*` + +### Build +```bash +cmake -DGROVE_BUILD_BGFX_RENDERER=ON -B build +cmake --build build -j4 +``` + +### Documentation +- `modules/BgfxRenderer/README.md` - Module overview +- `docs/PLAN_BGFX_RENDERER.md` - Implementation plan + ## Debugging Tools ```bash # ThreadSanitizer (detects data races, deadlocks)