skia2/tests/sksl/shared/HexUnsigned.glsl
John Stiles ecd2036eae Migrate more SkSL tests to run in dm.
- CastsRoundTowardZero
- Functions
- GeometricIntrinsics
- HelloWorld
- Hex

Other test updates:
- DeadLoopVariable (for-loop structure incompatible with ES2)
- FunctionPrototype (RTE currently disallows calling undef'd functions)
- HexUnsigned (unsigned types incompatible with ES2)

Change-Id: I794bee24dfac55281c9b8b130529888ba2546290
Bug: skia:11009
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/364678
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-02-03 23:45:15 +00:00

17 lines
258 B
GLSL

out vec4 sk_FragColor;
uniform vec4 colorGreen;
vec4 main() {
uint u1 = 0u;
u1++;
uint u2 = 305441741u;
u2++;
uint u3 = 2147483646u;
u3++;
uint u4 = 4294967294u;
u4++;
uint u5 = 65534u;
u5++;
return colorGreen;
}