wgpu-pp 1.0.1

Simple, C-style preprocessor for WGSL using proc macros.
Documentation
1
2
3
4
5
6
7
8
9
10
// DEFINE 3
// This tests undef.

#define PI f32(3.14159)
#undef PI

fn times_pi(x: f32) -> f32 {
    // Should still be PI.
    return x * PI;
}