cf27b4f744
This implements constant folding optimizations on int vectors (== != + - * /) that were previously only supported on float vectors. Bug: skia:10908 Change-Id: Ibf61ab43eb7ae2ce8e99cce21cc55777359817e5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/332424 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
19 lines
306 B
GLSL
19 lines
306 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
void main() {
|
|
{
|
|
sk_FragColor.x = 1.0;
|
|
sk_FragColor.y = 1.0;
|
|
sk_FragColor.z = 1.0;
|
|
sk_FragColor.w = 1.0;
|
|
}
|
|
|
|
{
|
|
sk_FragColor.x = 1.0;
|
|
sk_FragColor.y = 1.0;
|
|
sk_FragColor.z = 1.0;
|
|
sk_FragColor.w = 1.0;
|
|
}
|
|
|
|
}
|