dawn-cmake/test/tint/builtins/gen/literal/any/e755c1.wgsl.expected.glsl
dan sinclair 8a523d7d8e Add const-eval for any.
This CL adds const-eval for the `any` builtin.

Bug: tint:1581
Change-Id: I32d8946b3cd5c6d210b75104fa37c4d1ef6a6f84
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107542
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2022-10-29 16:21:24 +00:00

50 lines
711 B
GLSL

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