mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +00:00
Essentially, this adds GLSL to the list of backends to run. Bug: tint:1358 Change-Id: I5075df32d935a3e08733daadbe5ac9dc1e13f03c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77220 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
27 lines
389 B
GLSL
27 lines
389 B
GLSL
bug/tint/1369.wgsl:3:3 warning: code is unreachable
|
|
return true;
|
|
^^^^^^
|
|
|
|
bug/tint/1369.wgsl:9:9 warning: code is unreachable
|
|
var also_unreachable : bool;
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
#version 310 es
|
|
precision mediump float;
|
|
|
|
bool call_discard() {
|
|
discard;
|
|
return true;
|
|
}
|
|
|
|
void f() {
|
|
bool v = call_discard();
|
|
bool also_unreachable = false;
|
|
return;
|
|
}
|
|
void main() {
|
|
f();
|
|
}
|
|
|
|
|