wgsl-preprocessor/shaders/simple.wgsl

6 lines
127 B
WebGPU Shading Language

#define_module simple
#import inner::some_include
fn do_something_cool(in: f32) -> f32 {
return mult_some_nums(in, 2.0);
}