mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +00:00
If a WGSL test contains no entry points, add an empty one. In that case, do not pass its name to the generator, so we generate code for all functions, so they aren't culled for reachability. Add new test results for formerly empty tests. Bug: tint:1376 Change-Id: Ibf371b943fb273d44712dfcc9dc1b7bb4ab071db Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/76540 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
19 lines
296 B
GLSL
19 lines
296 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
void main() {
|
|
unused_entry_point();
|
|
}
|
|
|
|
|
|
|
|
void f() {
|
|
uvec2 v2 = uvec2((1u + 2u));
|
|
uvec3 v3 = uvec3((1u + 2u));
|
|
uvec4 v4 = uvec4((1u + 2u));
|
|
}
|