pub fn binary_wgsl(op: &str) -> StringExpand description
Generate WGSL source for an element-wise binary operation.
The shader reads n elements from two input buffers (lhs and rhs),
applies the operation, and writes the results to output.
§Arguments
op— one of:"add","sub","mul","div","max","min","pow". Unknown ops fall back to identity onlhs.