| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "GrGLSLCaps.h" | 9 #include "GrGLSLCaps.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 fUsesPrecisionModifiers = false; | 22 fUsesPrecisionModifiers = false; |
| 23 fCanUseAnyFunctionInShader = true; | 23 fCanUseAnyFunctionInShader = true; |
| 24 fCanUseMinAndAbsTogether = true; | 24 fCanUseMinAndAbsTogether = true; |
| 25 fMustForceNegatedAtanParamToFloat = false; | 25 fMustForceNegatedAtanParamToFloat = false; |
| 26 fFlatInterpolationSupport = false; | 26 fFlatInterpolationSupport = false; |
| 27 fNoPerspectiveInterpolationSupport = false; | 27 fNoPerspectiveInterpolationSupport = false; |
| 28 fMultisampleInterpolationSupport = false; | 28 fMultisampleInterpolationSupport = false; |
| 29 fSampleVariablesSupport = false; | 29 fSampleVariablesSupport = false; |
| 30 fSampleMaskOverrideCoverageSupport = false; | 30 fSampleMaskOverrideCoverageSupport = false; |
| 31 fExternalTextureSupport = false; | 31 fExternalTextureSupport = false; |
| 32 fBufferTextureSupport = false; | 32 fTexelFetchSupport = false; |
| 33 fVersionDeclString = nullptr; | 33 fVersionDeclString = nullptr; |
| 34 fShaderDerivativeExtensionString = nullptr; | 34 fShaderDerivativeExtensionString = nullptr; |
| 35 fFragCoordConventionsExtensionString = nullptr; | 35 fFragCoordConventionsExtensionString = nullptr; |
| 36 fSecondaryOutputExtensionString = nullptr; | 36 fSecondaryOutputExtensionString = nullptr; |
| 37 fExternalTextureExtensionString = nullptr; | 37 fExternalTextureExtensionString = nullptr; |
| 38 fBufferTextureExtensionString = nullptr; | 38 fTexelBufferExtensionString = nullptr; |
| 39 fNoPerspectiveInterpolationExtensionString = nullptr; | 39 fNoPerspectiveInterpolationExtensionString = nullptr; |
| 40 fMultisampleInterpolationExtensionString = nullptr; | 40 fMultisampleInterpolationExtensionString = nullptr; |
| 41 fSampleVariablesExtensionString = nullptr; | 41 fSampleVariablesExtensionString = nullptr; |
| 42 fFBFetchColorName = nullptr; | 42 fFBFetchColorName = nullptr; |
| 43 fFBFetchExtensionString = nullptr; | 43 fFBFetchExtensionString = nullptr; |
| 44 fMaxVertexSamplers = 0; | 44 fMaxVertexSamplers = 0; |
| 45 fMaxGeometrySamplers = 0; | 45 fMaxGeometrySamplers = 0; |
| 46 fMaxFragmentSamplers = 0; | 46 fMaxFragmentSamplers = 0; |
| 47 fMaxCombinedSamplers = 0; | 47 fMaxCombinedSamplers = 0; |
| 48 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; | 48 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 75 "YES" : "NO")); | 75 "YES" : "NO")); |
| 76 r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ?
"YES" : "NO")); | 76 r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ?
"YES" : "NO")); |
| 77 r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInter
polationSupport ? | 77 r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInter
polationSupport ? |
| 78 "YES" : "NO")); | 78 "YES" : "NO")); |
| 79 r.appendf("Multisample interpolation support: %s\n", (fMultisampleInterpolat
ionSupport ? | 79 r.appendf("Multisample interpolation support: %s\n", (fMultisampleInterpolat
ionSupport ? |
| 80 "YES" : "NO")); | 80 "YES" : "NO")); |
| 81 r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES"
: "NO")); | 81 r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES"
: "NO")); |
| 82 r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrid
eCoverageSupport ? | 82 r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrid
eCoverageSupport ? |
| 83 "YES" : "NO")); | 83 "YES" : "NO")); |
| 84 r.appendf("External texture support: %s\n", (fExternalTextureSupport ? "YES"
: "NO")); | 84 r.appendf("External texture support: %s\n", (fExternalTextureSupport ? "YES"
: "NO")); |
| 85 r.appendf("Buffer texture support: %s\n", (fBufferTextureSupport ? "YES" : "
NO")); | 85 r.appendf("texelFetch support: %s\n", (fTexelFetchSupport ? "YES" : "NO")); |
| 86 r.appendf("Max VS Samplers: %d\n", fMaxVertexSamplers); | 86 r.appendf("Max VS Samplers: %d\n", fMaxVertexSamplers); |
| 87 r.appendf("Max GS Samplers: %d\n", fMaxGeometrySamplers); | 87 r.appendf("Max GS Samplers: %d\n", fMaxGeometrySamplers); |
| 88 r.appendf("Max FS Samplers: %d\n", fMaxFragmentSamplers); | 88 r.appendf("Max FS Samplers: %d\n", fMaxFragmentSamplers); |
| 89 r.appendf("Max Combined Samplers: %d\n", fMaxFragmentSamplers); | 89 r.appendf("Max Combined Samplers: %d\n", fMaxFragmentSamplers); |
| 90 r.appendf("Advanced blend equation interaction: %s\n", | 90 r.appendf("Advanced blend equation interaction: %s\n", |
| 91 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); | 91 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); |
| 92 return r; | 92 return r; |
| 93 } | 93 } |
| 94 | 94 |
| 95 void GrGLSLCaps::initSamplerPrecisionTable() { | 95 void GrGLSLCaps::initSamplerPrecisionTable() { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 table[kRGBA_float_GrPixelConfig] = kHigh_GrSLPrecision; | 142 table[kRGBA_float_GrPixelConfig] = kHigh_GrSLPrecision; |
| 143 table[kAlpha_half_GrPixelConfig] = mediump; | 143 table[kAlpha_half_GrPixelConfig] = mediump; |
| 144 table[kRGBA_half_GrPixelConfig] = mediump; | 144 table[kRGBA_half_GrPixelConfig] = mediump; |
| 145 | 145 |
| 146 GR_STATIC_ASSERT(16 == kGrPixelConfigCnt); | 146 GR_STATIC_ASSERT(16 == kGrPixelConfigCnt); |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 | 149 |
| 150 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { | 150 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { |
| 151 } | 151 } |
| OLD | NEW |