Skip to content

An example of a GPU-powered Debug Draw system in WebGPU.

Notifications You must be signed in to change notification settings

magcius/WebGPU-DebugDraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPU-driven DebugDraw in WebGPU

  • A basic demonstration showing how to draw a lot of different shapes to help debug WebGPU: lines, axes, spheres, discs (solid and lines), rectangles (solid and lines).
  • Supports depth tinting (shader-driven depth buffer testing to let you "see" the other side of your shapes through objects), and "thick" lines (through instancing).
  • A basic monospace text printer as well for debugging.
  • Shows a "GPU-driven" mode allowing you to draw shapes and print float vectors from shaders, using a storage buffer and appending draw commands. Helpful for debugging geometry from shaders.

About

An example of a GPU-powered Debug Draw system in WebGPU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published