Skip to content
WebGPU demo written in D
D GLSL Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
lib
shaders
src
tools/x64
.gitignore
COPYING
README.md
compileShaders.sh
compileShaders_x64.bat
compileShaders_x86.bat
dub.json
screenshot.jpg

README.md

wgpu-dlang

bindbc-wgpu usage example - a PBR model rendering demo. Uses SDL2 for window creation and glslangValidator to compile shaders at build time.

Warning: highly experimental! I've tested it only on 64-bit Windows so far. On other platforms you have to install glslangValidator. It probably should work on Linux (X11/Wayland) and macOS (Metal), however has not been tested yet.

I'm currently writing a minimal object-oriented framework for the demo, so the code can be messy.

Screenshot

What is WebGPU?

It is a new low-level graphics and compute API for the Web that works on top of Vulkan, DirectX 12, or Metal. It exposes the generic computational facilities available in today's GPUs in a cross-platform way.

wgpu is a native WebGPU implementation in Rust that compiles to a library with C API, which can be used in any language.

You can’t perform that action at this time.