~/talk

Migration from WebGL to WebGPU

Talkat Conf42 JavaScript 2023 · on Thursday, 2023-11-16· [web-platform, web-performance]
slides:none on file

Chrome 130 and recent engines already expose WebGPU so migrating means concrete API shifts not vague promises: shaders move from glsl to wgsl and can be converted with Naga (WASM in‑browser), depth clip changes from -1..1 to 0..1 so apply z fixes or adjust projection matrices, textures flip vertically so use y = 1 - y, uniforms consolidate into uniform buffers with dynamic offsets, one GPU device can drive multiple canvases, command encoding uses a queue and render/compute passes, pipeline creation is async so prefer createPipelineAsync and use render bundles to avoid jank.

AI-written summary · about

  1. 0:00intro
  2. 0:22preamble
  3. 0:38background
  4. 2:41current state of webgpu
  5. 3:44webgpu core concepts
  6. 4:06gpu adapter
  7. 4:48gpu device
  8. 5:17features and limits
  9. 5:58gpucanvascontext
  10. 6:19resource types
  11. 7:21queue
  12. 7:54recording gpu commands
  13. 8:24passes
  14. 9:25high-level conceptual differences
  15. 10:33buffers
  16. 10:57shaders
  17. 11:27programs vs pipelines
  18. 13:34drawing
  19. 14:07uniforms
  20. 14:18in webgl 1.0
  21. 14:34in webgl 2.0
  22. 15:35in webgpu
  23. 16:37shaders
  24. 16:52glsl vs wgsl
  25. 17:13comparison of data types
  26. 17:36structures
  27. 17:53function declarations
  28. 18:05built-in functions
  29. 18:55convention differences
  30. 19:07texture 2d
  31. 19:49viewport space
  32. 20:07clip spaces
  33. 21:43webgpu tips
  34. 23:26resources & links
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.