dawn-cmake/test/tint/builtins/gen/abs/1ce782.wgsl.expected.glsl
Stephen White 628289e17d GLSL: implement abs() on unsigned arguments.
It's a no-op.

Bug: tint:1458
Change-Id: Ib97c409fd806da1c97ac867f21ef42b8a18c178c
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82364
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-03-02 14:36:52 +00:00

49 lines
761 B
GLSL

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