wgsl-preprocessor/shaders/inner_include.wgsl

8 lines
139 B
WebGPU Shading Language

#define_module inner::some_include
const scalar: f32 = 5.0;
fn mult_some_nums(a: f32, b: f32) -> f32 {
let c = a * b;
return c;
}