dawn-cmake/test/tint/builtins/gen/literal/atanh/f3e01b.wgsl.expected.glsl
Ben Clayton 46de10299f tint/transform/builtin_polyfill: Don't polyfill @const builtins
We don't want to replace builtins that are constant-expression
evaluated, as the replacement cannot be used as a constant expression.

Fixed: tint:1667
Change-Id: I554d9884fc41890247ee64b47a70621be5fcdbe5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107680
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-10-28 20:46:07 +00:00

50 lines
765 B
GLSL

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