ImGui: DX12 dynamic font atlas (1.92 RendererHasTextures)#221
Conversation
|
Warning Review limit reached
More reviews will be available in 52 minutes and 26 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughAdds a ChangesImGui DX12 SRV Callback Wiring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@code/framework/src/external/imgui/wrapper.cpp`:
- Around line 30-34: ImGuiAllocSRV currently assumes AllocateSRVSlot always
succeeds, but it can return -1 on SRV pool exhaustion and then the code returns
invalid descriptor handles. Update ImGuiAllocSRV to detect the failure case
immediately after calling AllocateSRVSlot, fail loudly instead of populating
outCpu/outGpu, and only call GetSRVSlotCPUHandle/GetSRVSlotGPUHandle when the
slot is valid.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 07db31e0-e43e-4729-a41b-a96311969bae
📒 Files selected for processing (2)
code/framework/src/external/imgui/wrapper.cppcode/framework/src/graphics/backend/d3d12.h
Init via the InitInfo path wired to the backend's SRV slot pool so the DX12 backend advertises RendererHasTextures; the legacy single-descriptor init asserts when 1.92 rebuilds the atlas at runtime. Adds GetCommandQueue.
f1707e5 to
f32adfc
Compare
Init via the InitInfo path wired to the backend's SRV slot pool so the DX12 backend advertises RendererHasTextures; the legacy single-descriptor init asserts when 1.92 rebuilds the atlas at runtime. Adds GetCommandQueue.
Summary by CodeRabbit