Skip to content

feat: TRACEID_BUFFERS trace, example control, and storage buffer debug names#8705

Merged
mvaligursky merged 1 commit into
mainfrom
mv-trace-buffers-debug-names
May 8, 2026
Merged

feat: TRACEID_BUFFERS trace, example control, and storage buffer debug names#8705
mvaligursky merged 1 commit into
mainfrom
mv-trace-buffers-debug-names

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

@mvaligursky mvaligursky commented May 8, 2026

Adds a debug trace channel to list GPU buffers tracked on the graphics device (vertex, index, storage), with per-type byte totals and optional per-buffer names. The LOD streaming example gets a one-frame "Log Buffers" control; engine-internal storage buffers are tagged for easier identification in that dump.

Changes:

  • New TRACEID_BUFFERS constant and GraphicsDevice.frameStart logging (sorted by size, VB/IB/SB totals, optional buffer.name in the line output).
  • LOD streaming example: "Log Buffers" button and Tracing.set(TRACEID_BUFFERS, …) for one frame (same pattern as textures).
  • DebugHelper.setName after internal new StorageBuffer allocations (gsplat, radix sort, prefix sum, WebGPU indirect/draw paths).
  • StorageBuffer docs: optional instance name for listings when TRACEID_BUFFERS is enabled.

API Changes:

  • New public constant: TRACEID_BUFFERS (same family as TRACEID_TEXTURES). Enable with Tracing.set(pc.TRACEID_BUFFERS, true) for the frames where logging should run.

Examples:

  • examples/src/examples/gaussian-splatting/lod-streaming.example.mjs
  • examples/src/examples/gaussian-splatting/lod-streaming.controls.mjs
Screenshot 2026-05-08 at 11 33 32

…g names

- Add TRACEID_BUFFERS and log device buffers in GraphicsDevice.frameStart
- LOD streaming example: Log Buffers button + one-frame tracing
- Name internal StorageBuffers via DebugHelper for buffer listings
- Document optional instance name for TRACEID_BUFFERS on StorageBuffer
@mvaligursky mvaligursky self-assigned this May 8, 2026
@mvaligursky mvaligursky merged commit bd28592 into main May 8, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-trace-buffers-debug-names branch May 8, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant