mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +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();
|
|
}
|