dawn-cmake/test/tint/builtins/gen/literal/atan/5ca7b8.wgsl.expected.wgsl
dan sinclair 20500b8e3a Add const-eval for atan.
This CL adds const-eval for the `atan` operator.

Bug: tint:1581
Change-Id: I3d9b417e86af010dc2f18c4e0424ddf971d55984
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106844
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2022-10-24 21:57:27 +00:00

20 lines
268 B
WebGPU Shading Language

fn atan_5ca7b8() {
var res = atan(vec2(1));
}
@vertex
fn vertex_main() -> @builtin(position) vec4<f32> {
atan_5ca7b8();
return vec4<f32>();
}
@fragment
fn fragment_main() {
atan_5ca7b8();
}
@compute @workgroup_size(1)
fn compute_main() {
atan_5ca7b8();
}