mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 22:26:06 +00:00
This Cl changes the default acos test value so it equals `cos(.25)` instead of `cos(.5)`. The `.5` result was slightly different on various machines. Bug: tint:1581 Change-Id: I768141ae87a63b2c35ec4d61eb030edad77e11e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108863 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
50 lines
738 B
GLSL
50 lines
738 B
GLSL
#version 310 es
|
|
|
|
void acos_15d35b() {
|
|
vec2 res = vec2(0.25f);
|
|
}
|
|
|
|
vec4 vertex_main() {
|
|
acos_15d35b();
|
|
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 acos_15d35b() {
|
|
vec2 res = vec2(0.25f);
|
|
}
|
|
|
|
void fragment_main() {
|
|
acos_15d35b();
|
|
}
|
|
|
|
void main() {
|
|
fragment_main();
|
|
return;
|
|
}
|
|
#version 310 es
|
|
|
|
void acos_15d35b() {
|
|
vec2 res = vec2(0.25f);
|
|
}
|
|
|
|
void compute_main() {
|
|
acos_15d35b();
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
compute_main();
|
|
return;
|
|
}
|