76013704ad
At present, we do not report any error; the values wrap silently. Change-Id: I8c435cfdd81f6c2e5fd87e9c39c708138bf4ec82 Bug: skia:10932 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333676 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
12 lines
299 B
Plaintext
12 lines
299 B
Plaintext
uint uintMin = 0;
|
|
uint uintMinMinusOne = -1;
|
|
uint uintMax = 4294967295;
|
|
uint uintMaxPlusOne = 4294967296;
|
|
|
|
void main() {
|
|
sk_FragColor.x = half(uintMin);
|
|
sk_FragColor.x = half(uintMinMinusOne);
|
|
sk_FragColor.x = half(uintMax);
|
|
sk_FragColor.x = half(uintMaxPlusOne);
|
|
}
|