wgsl-spec

Crates.iowgsl-spec
lib.rswgsl-spec
version0.2.0
sourcesrc
created_at2024-07-18 18:28:47.441599
updated_at2024-07-20 15:02:02.013973
descriptionMachine-readable specification for WGSL
homepage
repositoryhttps://github.com/nolanderc/wgsl-spec
max_upload_size
id1307847
size2,712,467
Christofer Nolander (nolanderc)

documentation

README

Machine Readable Spec for WGSL (WebGPU Shading Language)

This repo contains scripts for scraping the WGSL spec and produces a set of JSON files in the spec/ directory:

  • spec/tokens.json: keywords and special names.

  • spec/functions.json: information about builtin functions, complete with signatures and documentation.

Building

You can download the most recent spec by running:

./x update-upstream

And then to regenerate the JSON files:

./x run
Commit count: 0

cargo fmt