mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 09:06:11 +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>
23 lines
326 B
GLSL
23 lines
326 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();
|
|
}
|
|
|
|
|
|
|
|
float get_f32() {
|
|
return 1.0f;
|
|
}
|
|
|
|
void f() {
|
|
vec2 v2 = vec2(get_f32());
|
|
vec3 v3 = vec3(get_f32());
|
|
vec4 v4 = vec4(get_f32());
|
|
}
|