| Crates.io | wgsl-template |
| lib.rs | wgsl-template |
| version | 0.4.0 |
| created_at | 2026-01-19 10:39:37.932075+00 |
| updated_at | 2026-01-25 08:37:31.17584+00 |
| description | Macro expansion for wgsl using ppx, a C-style macro library |
| homepage | |
| repository | https://github.com/Jomy10/ppx |
| max_upload_size | |
| id | 2054210 |
| size | 9,430 |
A template engine for wgsl files using ppx.
To compile a wgsl template at compile time, this crate provides a macro
similar to include_wgsl! in wgpu.
let shader = device.create_shader_module(include_wgsl_template!("wgsl/file.wgsl", "wgsl/", ["1", "35"]));
To compile a wgsl template at runtime, use the ppx library directly.