dawn-cmake/test/tint/builtins/gen/literal/acos/a610c4.wgsl.expected.wgsl
dan sinclair 9cbc7e1e54 Implement const-eval for acos
This CL adds const-eval for the `acos` builtin.

Bug: tint:1581
Change-Id: I01c0f48e73eedf87cf9c912715487f8eea44f64e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108341
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-11-03 14:49:23 +00:00

20 lines
295 B
WebGPU Shading Language

fn acos_a610c4() {
var res : vec3<f32> = acos(vec3<f32>(0.87758255f));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
acos_a610c4();
return vec4<f32>();
}
@fragment
fn fragment_main() {
acos_a610c4();
}
@compute @workgroup_size(1)
fn compute_main() {
acos_a610c4();
}