wgsl-preprocessor/shaders/base.wgsl

6 lines
127 B
WebGPU Shading Language
Raw Normal View History

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