23 lines
391 B
Plaintext
23 lines
391 B
Plaintext
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;
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
bool call_discard() {
|
|
discard_fragment();
|
|
return true;
|
|
}
|
|
|
|
fragment void f() {
|
|
bool v = call_discard();
|
|
bool also_unreachable = false;
|
|
return;
|
|
}
|
|
|