https://github.com/emcfarlane/webgputoy
Experiments with WebGPU shaders in Zig
https://github.com/emcfarlane/webgputoy
Last synced: over 1 year ago
JSON representation
Experiments with WebGPU shaders in Zig
- Host: GitHub
- URL: https://github.com/emcfarlane/webgputoy
- Owner: emcfarlane
- Created: 2022-04-20T21:47:20.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T15:57:46.000Z (about 4 years ago)
- Last Synced: 2024-04-21T00:58:22.342Z (about 2 years ago)
- Language: Zig
- Size: 479 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [wip] webgputoy
WebGPU shader toy. Uses mach-dawn for rendering a wgsl pipeline.

## Build
Includes are missing (TODO). Download them manually and add them to libs!
Also `git submodule init` to get `mach-glfw` ziggified bindings.
```sh
$ tree -L 2 libs/
libs/
├── extern
│ ├── compat.h
│ ├── futureproof.h
│ └── preview.h
├── include
│ ├── dawn
│ ├── dawn_native_mach.cpp
│ ├── dawn_native_mach.h
│ ├── tint
│ └── webgpu
├── libdawn.a
└── mach-glfw
├── LICENSE
├── LICENSE-APACHE
├── LICENSE-MIT
├── README.md
├── build.zig
├── src
├── system_sdk.zig
├── update-upstream.sh
└── upstream
8 directories, 13 files
```
- [arch_debug.tar.gz](https://github.com/hexops/mach-gpu-dawn/releases)
- [dawn_native_mach.cpp](https://github.com/hexops/mach/blob/main/gpu-dawn/src/dawn/dawn_native_mach.cpp)
- [dawn_native_mach.h](https://github.com/hexops/mach/blob/main/gpu-dawn/src/dawn/dawn_native_mach.h)
## Refs
- [WebGPU](https://gpuweb.github.io/gpuweb/wgsl/#resource-interface)