Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: src/gpu/glsl/GrGLSLCaps.h

Issue 1693113002: Revert of Add infastructure for gl_SampleMask (Closed) Base URL: https://skia.googlesource.com/skia.git@upload7_interp
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/glsl/GrGLSL.cpp ('k') | src/gpu/glsl/GrGLSLCaps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef GrGLSLCaps_DEFINED 9 #ifndef GrGLSLCaps_DEFINED
10 #define GrGLSLCaps_DEFINED 10 #define GrGLSLCaps_DEFINED
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool bindlessTextureSupport() const { return fBindlessTextureSupport; } 47 bool bindlessTextureSupport() const { return fBindlessTextureSupport; }
48 48
49 const char* versionDeclString() const { return fVersionDeclString; } 49 const char* versionDeclString() const { return fVersionDeclString; }
50 50
51 const char* fbFetchColorName() const { return fFBFetchColorName; } 51 const char* fbFetchColorName() const { return fFBFetchColorName; }
52 52
53 const char* fbFetchExtensionString() const { return fFBFetchExtensionString; } 53 const char* fbFetchExtensionString() const { return fFBFetchExtensionString; }
54 54
55 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } 55 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; }
56 56
57 bool sampleVariablesSupport() const { return fSampleVariablesSupport; }
58
59 bool sampleMaskOverrideCoverageSupport() const { return fSampleMaskOverrideC overageSupport; }
60
61 bool flatInterpolationSupport() const { return fFlatInterpolationSupport; } 57 bool flatInterpolationSupport() const { return fFlatInterpolationSupport; }
62 58
63 bool noperspectiveInterpolationSupport() const { return fNoPerspectiveInterp olationSupport; } 59 bool noperspectiveInterpolationSupport() const { return fNoPerspectiveInterp olationSupport; }
64 60
65 AdvBlendEqInteraction advBlendEqInteraction() const { return fAdvBlendEqInte raction; } 61 AdvBlendEqInteraction advBlendEqInteraction() const { return fAdvBlendEqInte raction; }
66 62
67 bool mustEnableAdvBlendEqs() const { 63 bool mustEnableAdvBlendEqs() const {
68 return fAdvBlendEqInteraction >= kGeneralEnable_AdvBlendEqInteraction; 64 return fAdvBlendEqInteraction >= kGeneralEnable_AdvBlendEqInteraction;
69 } 65 }
70 66
(...skipping 14 matching lines...) Expand all
85 81
86 bool mustForceNegatedAtanParamToFloat() const { return fMustForceNegatedAtan ParamToFloat; } 82 bool mustForceNegatedAtanParamToFloat() const { return fMustForceNegatedAtan ParamToFloat; }
87 83
88 // Returns the string of an extension that must be enabled in the shader to support 84 // Returns the string of an extension that must be enabled in the shader to support
89 // derivatives. If nullptr is returned then no extension needs to be enabled . Before calling 85 // derivatives. If nullptr is returned then no extension needs to be enabled . Before calling
90 // this function, the caller should check that shaderDerivativeSupport exist s. 86 // this function, the caller should check that shaderDerivativeSupport exist s.
91 const char* shaderDerivativeExtensionString() const { 87 const char* shaderDerivativeExtensionString() const {
92 SkASSERT(this->shaderDerivativeSupport()); 88 SkASSERT(this->shaderDerivativeSupport());
93 return fShaderDerivativeExtensionString; 89 return fShaderDerivativeExtensionString;
94 } 90 }
95
96 const char* sampleVariablesExtensionString() const {
97 SkASSERT(this->sampleVariablesSupport());
98 return fSampleVariablesExtensionString;
99 }
100 91
101 // Returns the string of an extension that will do all necessary coord trans fomations needed 92 // Returns the string of an extension that will do all necessary coord trans fomations needed
102 // when reading the fragment position. If such an extension does not exisits , this function 93 // when reading the fragment position. If such an extension does not exisits , this function
103 // returns a nullptr, and all transforms of the frag position must be done m anually in the 94 // returns a nullptr, and all transforms of the frag position must be done m anually in the
104 // shader. 95 // shader.
105 const char* fragCoordConventionsExtensionString() const { 96 const char* fragCoordConventionsExtensionString() const {
106 return fFragCoordConventionsExtensionString; 97 return fFragCoordConventionsExtensionString;
107 } 98 }
108 99
109 // This returns the name of an extension that must be enabled in the shader, if such a thing is 100 // This returns the name of an extension that must be enabled in the shader, if such a thing is
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void onApplyOptionsOverrides(const GrContextOptions& options) override; 139 void onApplyOptionsOverrides(const GrContextOptions& options) override;
149 140
150 GrGLSLGeneration fGLSLGeneration; 141 GrGLSLGeneration fGLSLGeneration;
151 142
152 bool fDropsTileOnZeroDivide : 1; 143 bool fDropsTileOnZeroDivide : 1;
153 bool fFBFetchSupport : 1; 144 bool fFBFetchSupport : 1;
154 bool fFBFetchNeedsCustomOutput : 1; 145 bool fFBFetchNeedsCustomOutput : 1;
155 bool fBindlessTextureSupport : 1; 146 bool fBindlessTextureSupport : 1;
156 bool fUsesPrecisionModifiers : 1; 147 bool fUsesPrecisionModifiers : 1;
157 bool fCanUseAnyFunctionInShader : 1; 148 bool fCanUseAnyFunctionInShader : 1;
158 bool fSampleVariablesSupport : 1;
159 bool fSampleMaskOverrideCoverageSupport : 1;
160 bool fFlatInterpolationSupport : 1; 149 bool fFlatInterpolationSupport : 1;
161 bool fNoPerspectiveInterpolationSupport : 1; 150 bool fNoPerspectiveInterpolationSupport : 1;
162 151
163 // Used for specific driver bug work arounds 152 // Used for specific driver bug work arounds
164 bool fCanUseMinAndAbsTogether : 1; 153 bool fCanUseMinAndAbsTogether : 1;
165 bool fMustForceNegatedAtanParamToFloat : 1; 154 bool fMustForceNegatedAtanParamToFloat : 1;
166 155
167 const char* fVersionDeclString; 156 const char* fVersionDeclString;
168 157
169 const char* fShaderDerivativeExtensionString; 158 const char* fShaderDerivativeExtensionString;
170 const char* fSampleVariablesExtensionString;
171 const char* fFragCoordConventionsExtensionString; 159 const char* fFragCoordConventionsExtensionString;
172 const char* fSecondaryOutputExtensionString; 160 const char* fSecondaryOutputExtensionString;
173 const char* fExternalTextureExtensionString; 161 const char* fExternalTextureExtensionString;
174 const char* fNoPerspectiveInterpolationExtensionString; 162 const char* fNoPerspectiveInterpolationExtensionString;
175 163
176 const char* fFBFetchColorName; 164 const char* fFBFetchColorName;
177 const char* fFBFetchExtensionString; 165 const char* fFBFetchExtensionString;
178 166
179 AdvBlendEqInteraction fAdvBlendEqInteraction; 167 AdvBlendEqInteraction fAdvBlendEqInteraction;
180 168
181 GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt]; 169 GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt];
182 GrSwizzle fConfigOutputSwizzle[kGrPixelConfigCnt]; 170 GrSwizzle fConfigOutputSwizzle[kGrPixelConfigCnt];
183 171
184 friend class GrGLCaps; // For initialization. 172 friend class GrGLCaps; // For initialization.
185 friend class GrVkCaps; 173 friend class GrVkCaps;
186 174
187 typedef GrShaderCaps INHERITED; 175 typedef GrShaderCaps INHERITED;
188 }; 176 };
189 177
190 #endif 178 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSL.cpp ('k') | src/gpu/glsl/GrGLSLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698