diff options
Diffstat (limited to 'src/gpu/glsl/GrGLSLCaps.h')
-rwxr-xr-x | src/gpu/glsl/GrGLSLCaps.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gpu/glsl/GrGLSLCaps.h b/src/gpu/glsl/GrGLSLCaps.h index 1c799454a7..f907be2b8d 100755 --- a/src/gpu/glsl/GrGLSLCaps.h +++ b/src/gpu/glsl/GrGLSLCaps.h @@ -64,6 +64,8 @@ public: bool sampleMaskOverrideCoverageSupport() const { return fSampleMaskOverrideCoverageSupport; } + bool externalTextureSupport() const { return fExternalTextureSupport; } + AdvBlendEqInteraction advBlendEqInteraction() const { return fAdvBlendEqInteraction; } bool mustEnableAdvBlendEqs() const { @@ -112,6 +114,7 @@ public: } const char* externalTextureExtensionString() const { + SkASSERT(this->externalTextureSupport()); return fExternalTextureExtensionString; } @@ -130,6 +133,14 @@ public: return fSampleVariablesExtensionString; } + int maxVertexSamplers() const { return fMaxVertexSamplers; } + + int maxGeometrySamplers() const { return fMaxGeometrySamplers; } + + int maxFragmentSamplers() const { return fMaxFragmentSamplers; } + + int maxCombinedSamplers() const { return fMaxCombinedSamplers; } + /** * Given a texture's config, this determines what swizzle must be appended to accesses to the * texture in generated shader code. Swizzling may be implemented in texture parameters or a @@ -167,6 +178,7 @@ private: bool fMultisampleInterpolationSupport : 1; bool fSampleVariablesSupport : 1; bool fSampleMaskOverrideCoverageSupport : 1; + bool fExternalTextureSupport : 1; // Used for specific driver bug work arounds bool fCanUseMinAndAbsTogether : 1; @@ -185,6 +197,11 @@ private: const char* fFBFetchColorName; const char* fFBFetchExtensionString; + uint8_t fMaxVertexSamplers; + uint8_t fMaxGeometrySamplers; + uint8_t fMaxFragmentSamplers; + uint8_t fMaxCombinedSamplers; + AdvBlendEqInteraction fAdvBlendEqInteraction; GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt]; |