dawn-cmake/test/tint/builtins/gen/literal/pack4x8snorm/4d22e7.wgsl.expected.glsl
dan sinclair 2d706a0436 Implemement const-eval for some pack routines.
This CL adds const-eval for pack2x16snorm, pack2x16unorm,
pack4x8snorm and pack4x8unorm.

Bug: tint:1581
Change-Id: I58d8f02da32a6a173ca54ee5110ca7be39e2c52f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108466
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2022-11-07 14:32:16 +00:00

50 lines
786 B
GLSL

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