dawn-cmake/test/tint/builtins/gen/literal/atan/ad96e4.wgsl.expected.glsl
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

50 lines
759 B
GLSL

#version 310 es
void atan_ad96e4() {
vec2 res = vec2(0.785398185f);
}
vec4 vertex_main() {
atan_ad96e4();
return vec4(0.0f);
}
void main() {
gl_PointSize = 1.0;
vec4 inner_result = vertex_main();
gl_Position = inner_result;
gl_Position.y = -(gl_Position.y);
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
return;
}
#version 310 es
precision mediump float;
void atan_ad96e4() {
vec2 res = vec2(0.785398185f);
}
void fragment_main() {
atan_ad96e4();
}
void main() {
fragment_main();
return;
}
#version 310 es
void atan_ad96e4() {
vec2 res = vec2(0.785398185f);
}
void compute_main() {
atan_ad96e4();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}