mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-29 10:13:34 +00: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();
|
|
}
|