diff options
author | cdalton <cdalton@nvidia.com> | 2016-02-12 13:24:26 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-12 13:24:26 -0800 |
commit | 533cefe5b9c7cec2592fc7ca00ee4cf69a26c094 (patch) | |
tree | 41c4264dd84c68d58ac4970bc905fb1fcead90c9 /src/gpu/glsl/GrGLSLCaps.cpp | |
parent | c7578b6cdd03b61f076ffc7956efd952d6c301c0 (diff) |
Add infastructure for gl_SampleMask
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1690963003
Review URL: https://codereview.chromium.org/1690963003
Diffstat (limited to 'src/gpu/glsl/GrGLSLCaps.cpp')
-rwxr-xr-x | src/gpu/glsl/GrGLSLCaps.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/glsl/GrGLSLCaps.cpp b/src/gpu/glsl/GrGLSLCaps.cpp index ba99be57e2..7116f5deb0 100755 --- a/src/gpu/glsl/GrGLSLCaps.cpp +++ b/src/gpu/glsl/GrGLSLCaps.cpp @@ -23,10 +23,13 @@ GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { fCanUseAnyFunctionInShader = true; fCanUseMinAndAbsTogether = true; fMustForceNegatedAtanParamToFloat = false; + fSampleVariablesSupport = false; + fSampleMaskOverrideCoverageSupport = false; fFlatInterpolationSupport = false; fNoPerspectiveInterpolationSupport = false; fVersionDeclString = nullptr; fShaderDerivativeExtensionString = nullptr; + fSampleVariablesExtensionString = nullptr; fFragCoordConventionsExtensionString = nullptr; fSecondaryOutputExtensionString = nullptr; fExternalTextureExtensionString = nullptr; @@ -61,6 +64,9 @@ SkString GrGLSLCaps::dump() const { r.appendf("Can use min() and abs() together: %s\n", (fCanUseMinAndAbsTogether ? "YES" : "NO")); r.appendf("Must force negated atan param to float: %s\n", (fMustForceNegatedAtanParamToFloat ? "YES" : "NO")); + r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES" : "NO")); + r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrideCoverageSupport ? + "YES" : "NO")); r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ? "YES" : "NO")); r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInterpolationSupport ? "YES" : "NO")); |