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 fVersionDeclString = nullptr; | 33 fVersionDeclString = nullptr; |
33 fShaderDerivativeExtensionString = nullptr; | 34 fShaderDerivativeExtensionString = nullptr; |
34 fFragCoordConventionsExtensionString = nullptr; | 35 fFragCoordConventionsExtensionString = nullptr; |
35 fSecondaryOutputExtensionString = nullptr; | 36 fSecondaryOutputExtensionString = nullptr; |
36 fExternalTextureExtensionString = nullptr; | 37 fExternalTextureExtensionString = nullptr; |
| 38 fBufferTextureExtensionString = nullptr; |
37 fNoPerspectiveInterpolationExtensionString = nullptr; | 39 fNoPerspectiveInterpolationExtensionString = nullptr; |
38 fMultisampleInterpolationExtensionString = nullptr; | 40 fMultisampleInterpolationExtensionString = nullptr; |
39 fSampleVariablesExtensionString = nullptr; | 41 fSampleVariablesExtensionString = nullptr; |
40 fFBFetchColorName = nullptr; | 42 fFBFetchColorName = nullptr; |
41 fFBFetchExtensionString = nullptr; | 43 fFBFetchExtensionString = nullptr; |
42 fMaxVertexSamplers = 0; | 44 fMaxVertexSamplers = 0; |
43 fMaxGeometrySamplers = 0; | 45 fMaxGeometrySamplers = 0; |
44 fMaxFragmentSamplers = 0; | 46 fMaxFragmentSamplers = 0; |
45 fMaxCombinedSamplers = 0; | 47 fMaxCombinedSamplers = 0; |
46 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; | 48 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
(...skipping 26 matching lines...) Expand all Loading... |
73 "YES" : "NO")); | 75 "YES" : "NO")); |
74 r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ?
"YES" : "NO")); | 76 r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ?
"YES" : "NO")); |
75 r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInter
polationSupport ? | 77 r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInter
polationSupport ? |
76 "YES" : "NO")); | 78 "YES" : "NO")); |
77 r.appendf("Multisample interpolation support: %s\n", (fMultisampleInterpolat
ionSupport ? | 79 r.appendf("Multisample interpolation support: %s\n", (fMultisampleInterpolat
ionSupport ? |
78 "YES" : "NO")); | 80 "YES" : "NO")); |
79 r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES"
: "NO")); | 81 r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES"
: "NO")); |
80 r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrid
eCoverageSupport ? | 82 r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrid
eCoverageSupport ? |
81 "YES" : "NO")); | 83 "YES" : "NO")); |
82 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")); |
83 r.appendf("Max VS Samplers: %d\n", fMaxVertexSamplers); | 86 r.appendf("Max VS Samplers: %d\n", fMaxVertexSamplers); |
84 r.appendf("Max GS Samplers: %d\n", fMaxGeometrySamplers); | 87 r.appendf("Max GS Samplers: %d\n", fMaxGeometrySamplers); |
85 r.appendf("Max FS Samplers: %d\n", fMaxFragmentSamplers); | 88 r.appendf("Max FS Samplers: %d\n", fMaxFragmentSamplers); |
86 r.appendf("Max Combined Samplers: %d\n", fMaxFragmentSamplers); | 89 r.appendf("Max Combined Samplers: %d\n", fMaxFragmentSamplers); |
87 r.appendf("Advanced blend equation interaction: %s\n", | 90 r.appendf("Advanced blend equation interaction: %s\n", |
88 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); | 91 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); |
89 return r; | 92 return r; |
90 } | 93 } |
91 | 94 |
92 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { | 95 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { |
93 } | 96 } |
94 | 97 |
OLD | NEW |