wgpu/tests/in/functions-webgl.wgsl

14 lines
206 B
WebGPU Shading Language

fn test_fma() -> vec2<f32> {
let a = vec2<f32>(2.0, 2.0);
let b = vec2<f32>(0.5, 0.5);
let c = vec2<f32>(0.5, 0.5);
return fma(a, b, c);
}
@fragment
fn main() {
let a = test_fma();
}