Files
6gbvram---16gb-ram/crates
Local TestandClaude Sonnet 5 b8fcd99b98 feat(diagnostics): report descriptor view table usage by kind
Add a per-kind breakdown to the periodic descriptor memory log. Report
occupied and free table slots and their flat memory footprint for all
six view kinds (constant buffer, shader resource, unordered access,
sampler, console sampler, placed memory). Free slots retain their last
occupant's kind until reuse. Both the existing summary and the new
breakdown come from one read of the table, in one pass over `list`
plus one over `free`, with no extra lock acquisition and no temporary
allocation sized by the table.

Two isolated tests (their own local table, no shared state, no raw
pointers, no unsafe code) verify the counts, byte attribution, and
cross-kind reuse: that a freed slot reused for a different kind moves
its count from the old kind's total to the new kind's without
affecting the table's overall size.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-11-26 16:50:08 +01:00
..