wgsl-preprocessor/shaders/base.wgsl

7 lines
161 B
WebGPU Shading Language
Raw Normal View History

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