2022-11-09 19:58:59 +00:00
|
|
|
#version 310 es
|
2023-03-09 19:58:23 +00:00
|
|
|
precision highp float;
|
2022-11-09 19:58:59 +00:00
|
|
|
|
|
|
|
bool tint_discarded = false;
|
|
|
|
layout(binding = 0, std430) buffer non_uniform_global_block_ssbo {
|
|
|
|
int inner;
|
|
|
|
} non_uniform_global;
|
|
|
|
|
|
|
|
layout(binding = 1, std430) buffer tint_symbol_block_ssbo {
|
|
|
|
float inner;
|
|
|
|
} tint_symbol;
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
if ((non_uniform_global.inner < 0)) {
|
|
|
|
tint_discarded = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void bar() {
|
|
|
|
if (!(tint_discarded)) {
|
|
|
|
tint_symbol.inner = dFdx(1.0f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void tint_symbol_1() {
|
|
|
|
foo();
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
tint_symbol_1();
|
|
|
|
if (tint_discarded) {
|
|
|
|
discard;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|