abb6814cc7
To my great surprise, a capital X is allowed in hex literals. In fact, this is allowed in both GLSL and C. The ES2 conformance suite tests this, so now SkSL supports it as well. Change-Id: If795c6033b301420669f002530ee1d14fec29f96 Bug: skia:12533 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/458723 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
16 lines
251 B
Plaintext
16 lines
251 B
Plaintext
uniform half4 colorGreen;
|
|
|
|
half4 main(float2 coords) {
|
|
uint u1 = 0x0;
|
|
u1++;
|
|
uint u2 = 0X1234abcd;
|
|
u2++;
|
|
uint u3 = 0x7ffffffe;
|
|
u3++;
|
|
uint u4 = 0Xfffffffe;
|
|
u4++;
|
|
ushort u5 = 0xfffe;
|
|
u5++;
|
|
return colorGreen;
|
|
}
|