wgsl-preprocessor/shaders/base.wgsl

7 lines
140 B
WebGPU Shading Language

#define_module base
#import simple
fn main() -> vec4<f32> {
let a = do_something_cool(10.0);
return vec4<f32>(vec3<f32>(a), 1.0);
}