added sksl support for integerSupport cap

Bug: skia:
Change-Id: I7e33af9b845db3f862a3a21cba7f2d56e8ea2909
Reviewed-on: https://skia-review.googlesource.com/24323
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2017-07-18 09:47:43 -04:00 committed by Skia Commit-Bot
parent 9b9510a711
commit 07990de817
2 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,7 @@ static void fill_caps(const SKSL_CAPS_CLASS& caps,
CAP(mustDeclareFragmentShaderOutput);
CAP(canUseAnyFunctionInShader);
CAP(floatPrecisionVaries);
CAP(integerSupport);
#undef CAP
}

View File

@ -139,6 +139,10 @@ public:
return false;
}
bool integerSupport() const {
return false;
}
const char* shaderDerivativeExtensionString() const {
return nullptr;
}