dawn-cmake/test/tint/builtins/gen/literal/fma/eb25d7.wgsl.expected.wgsl
dan sinclair 724ad2a290 Const eval for fma
This CL adds const-eval for the `fma` builtin.

Bug: tint:1581
Change-Id: Ia4df818fec9d5d969b364b2c165400d787a9e275
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111584
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-11-24 21:54:00 +00:00

20 lines
287 B
WebGPU Shading Language

fn fma_eb25d7() {
var res = fma(vec3(1.0), vec3(1.0), vec3(1.0));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
fma_eb25d7();
return vec4<f32>();
}
@fragment
fn fragment_main() {
fma_eb25d7();
}
@compute @workgroup_size(1)
fn compute_main() {
fma_eb25d7();
}