In this video, we learn how to write WGSL shader code in a separate WGSL file instead of raw strings in C++. This tutorial goes over the code from Google’s WebGPU Cross Platform App written by Francois Beaufort.
Tutorial: https://developer.chrome.com/docs/web-platform/webgpu/build-app
Code: https://github.com/beaufortfrancois/webgpu-cross-platform-app