← All projects
Project record1 mention
Originally shared on Hacker News

wgsl-rs

A Rust proc-macro crate that lets developers write WGSL shaders in a subset of Rust; the same code runs on the CPU for testing and on the GPU via generated WGSL, working on stable Rust with no custom toolchains needed.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. wgsl-rs

    A Rust proc-macro crate that lets developers write WGSL shaders in a subset of Rust; the same code runs on the CPU for testing and on the GPU via generated WGSL, working on stable Rust with no custom toolchains needed.

    Posted by @efnx · Original source ↗

    Source text · @efnx · · Source ↗

    I'm building wgsl-rs, a proc macro crate that lets you write WGSL shaders in a subset of Rust — same code runs on the CPU for testing and on the GPU via generated WGSL. Works on stable Rust, no custom toolchains needed.