skia2/tests/sksl/glsl/Caps.sksl
John Stiles 9080540b93 Convert additional GLSL tests to use golden files.
A handful of simplifications were made, but these hew very close to the
original tests and are intended to cover the exact same ground. The
remaining unconverted tests depend on non-default caps bits and will
be updated once caps handling in skslc is fully landed.

Change-Id: I3f3c29bf87f73e501561d7bfcdaabe8acc14b89f
Bug: skia:10694
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317390
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-09-16 20:11:17 +00:00

10 lines
236 B
Plaintext

void main() {
int x = 0;
int y = 0;
int z = 0;
if (sk_Caps.externalTextureSupport) x = 1;
if (sk_Caps.fbFetchSupport) y = 1;
if (sk_Caps.canUseAnyFunctionInShader) z = 1;
sk_FragColor.rgb = half3(x, y, z);
}