wgsl-preprocessor/shaders/base.wgsl

7 lines
172 B
WebGPU Shading Language
Raw Normal View History

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