#define_import_path smud::fragment #import smud::sdf #import smud::fill struct FragmentInput { @location(0) color: vec4, @location(1) pos: vec2, }; @fragment fn fragment(in: FragmentInput) -> @location(0) vec4 { let d = sdf::sdf(in.pos); return fill::fill(d, in.color); }