Speaker: Stefan Brandmair

 

The cross-platform WebGPU graphics API introduces a new shading language called WGSL. It is a minimal shading language that currently does not have import statements and only minimal IDE support.

This presentation goes over my journey to help change that, and introduce import statements to an existing programming language, and how to use those to build re-usable libraries for shader code.

 

I will showcase our implementation, which accepts an enhanced version of WGSL and outputs normal WGSL. We are working together with both the official WebGPU team and with the Bevy game engine. We have a compiler toolchain which parses a superset of WGSL and lowers it down to current WGSL. This lets us support import statements, conditional compilation, and libraries for both Rust and Typescript toolchains.

 

This presentation will explore the interplay between compiler development and computer graphics.


 

Details

Category

Duration

15 + 5