dawn-cmake/test/tint/builtins/gen/literal/asin/c0c272.wgsl.expected.glsl
dan sinclair fd1b5a893d Set specific test value for asin test cases.
The value of 1 for the `asin` is providing a slightly different result on OSX
compared to the Windows and Linux results. This CL updates the test case to use
asin(0.479425538604) = 0.5

Bug: tint:1581
Change-Id: Ibf7a921d1476c0d24da696eb6cc2b491c1ca1516
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107541
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-10-28 12:31:08 +00:00

50 lines
720 B
GLSL

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