mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
14 lines
206 B
WebGPU Shading Language
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();
|
|
}
|