skia2/tests/sksl/shared/NumberCasts.sksl

24 lines
487 B
Plaintext
Raw Normal View History

bool BF = bool(1.23);
bool BI = bool(1);
bool BB = bool(true);
float FF = float(1.23);
float FI = float(1);
float FB = float(true);
int IF = int(1.23);
int II = int(1);
int IB = int(true);
void main() {
sk_FragColor.x = half(BF);
sk_FragColor.x = half(BI);
sk_FragColor.x = half(BB);
sk_FragColor.x = half(FF);
sk_FragColor.x = half(FI);
sk_FragColor.x = half(FB);
sk_FragColor.x = half(IF);
sk_FragColor.x = half(II);
sk_FragColor.x = half(IB);
}