dawn-cmake/test/tint/builtins/gen/literal/floor/3bccc4.wgsl.expected.glsl
dan sinclair 91e27f25f9 Add const-eval for floor.
This Cl adds const-eval for the `floor` builtin.

Bug: tint:1581
Change-Id: I992eba3aa6c66707e923907a4bb912c2f6f8d290
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108343
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2022-11-03 17:10:49 +00:00

50 lines
741 B
GLSL

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