blob: 2ada21da9e0a579a11827320a9a6e58876b26fd7 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
fragment void tint_symbol(device int* tint_symbol_1 [[buffer(0)]], device float* tint_symbol_3 [[buffer(1)]]) {
thread bool tint_symbol_2 = false;
if ((*(tint_symbol_1) < 0)) {
tint_symbol_2 = true;
}
if (!(tint_symbol_2)) {
*(tint_symbol_3) = dfdx(1.0f);
}
if (tint_symbol_2) {
discard_fragment();
}
return;
}