wgsl-template

Crates.iowgsl-template
lib.rswgsl-template
version0.4.0
created_at2026-01-19 10:39:37.932075+00
updated_at2026-01-25 08:37:31.17584+00
descriptionMacro expansion for wgsl using ppx, a C-style macro library
homepage
repositoryhttps://github.com/Jomy10/ppx
max_upload_size
id2054210
size9,430
Jonas Everaert (Jomy10)

documentation

README

WGSL template engine

A template engine for wgsl files using ppx.

Usage

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.

Commit count: 31

cargo fmt