dawn-cmake/test/tint/builtins/gen/literal/acosh/e38f5c.wgsl.expected.glsl
dan sinclair e2fd5e09c6 Implement const-eval for acosh
This CL adds const-eval for the `acosh` test case. The generation of
`f16` values into test files is also fixed because `acosh` requires the
value to be `>= 1.0`

Bug: tint:1581
Change-Id: Iba2ca4d9d114034845475679346f042c8c66e571
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109341
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2022-11-10 02:39:08 +00:00

50 lines
765 B
GLSL

#version 310 es
void acosh_e38f5c() {
vec3 res = vec3(1.316957951f);
}
vec4 vertex_main() {
acosh_e38f5c();
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 acosh_e38f5c() {
vec3 res = vec3(1.316957951f);
}
void fragment_main() {
acosh_e38f5c();
}
void main() {
fragment_main();
return;
}
#version 310 es
void acosh_e38f5c() {
vec3 res = vec3(1.316957951f);
}
void compute_main() {
acosh_e38f5c();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
compute_main();
return;
}