Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (35 loc) · 1.48 KB

File metadata and controls

64 lines (35 loc) · 1.48 KB

Learning WebGPU

Status update: I started learning Vulkan and I'm currently not interested in continuing to learn WebGPU anymore.

See my new project here:

https://github.com/eliasdaler/edbr

Progress

6_skeletal_animation.mp4

Building

I'm using SDL for windows/input and Google Dawn as a WebGPU backend. Everything is built from source.

Install system deps (Linux)

(TODO: probably incomplete list)

sudo apt install libx11-xcb-dev

Build

mkdir build && cd build
cmake ..
cmake --build .

Status of WebGPU support in browsers on Linux

  • Firefox Nightly (123.0) - kinda works, but WGSL support seems incomplete (e.g. override doesn't work)
  • Chrome Unstable (122.0.6182.0) - on Linux WebGPU only works when launched with --enable-features=Vulkan,UseSkiaRenderer --enable-unsafe-webgpu

Progress

19.12.23 - first triangle

triangle

20.12.23 - textured quad

textured_quad

20.01.24 - model

model

22.01.24 - simple Blinn-Phong lighting

blinn_phong

25.01.24 - loading complex glTF scenes

gltf_scene_loading

02.02.24 - skeletal animation

6_skeletal_animation.mp4