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

eliasdaler/webgpu-learning

Repository files navigation

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

About

I'm learning webgpu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published