1 of 11

WebGPUReconstruct

Demo and status update

2 of 11

Goals

  • Debug/profile WebGPU implementation changes
    • Using existing Vulkan tooling
    • … on Android
  • Fully consistent test content
    • Does exactly the same thing every time
    • … and I don’t have to write it myself

​

3 of 11

WebGPUReconstruct

  • Browser extension to capture WebGPU commands and output capture file
  • Native apps to replay capture file using either wgpu or Dawn

4 of 11

5 of 11

Status

  • All core WebGPU functions / properties supported
    • … except compiler hints
  • Capture
    • Chrome
    • Firefox
  • Replayer
    • Windows
    • Linux
    • Android

6 of 11

Features

  • core-features-and-limits
  • depth-clip-control
  • depth32float-stencil8
  • texture-compression-bc
  • texture-compression-bc-sliced-3d
  • texture-compression-etc2
  • texture-compression-astc
  • texture-compression-astc-sliced-3d
  • timestamp-query
  • indirect-first-instance
  • shader-f16
  • rg11b10ufloat-renderable
  • bgra8unorm-storage
  • float32-filterable
  • float32-blendable
  • clip-distances
  • subgroups

7 of 11

Context

  • Injects a content script in the main world
  • Doesn’t capture commands in:
    • Web workers
    • iframes

8 of 11

Presentation

  • Supported
    • requestAnimationFrame
  • Not supported
    • setInterval
    • requestVideoFrameCallback

9 of 11

Object lifetimes

  • When should an object be destroyed during replay?
    • .destroy() ☺
    • Garbage collected ???
  • Objects are never destroyed

10 of 11

Labels

  • Labels in descriptors captured/replayed
  • But not updates

11 of 11

Try it out