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

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

Issue 1870893002: Implement texel buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_texelfetch
Patch Set: GrBuffer(Access) into include/gpu Created 4 years, 8 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/GrGLSLProgramBuilder.cpp ('k') | src/gpu/glsl/GrGLSLXferProcessor.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrGLSLShaderBuilder_DEFINED 8 #ifndef GrGLSLShaderBuilder_DEFINED
9 #define GrGLSLShaderBuilder_DEFINED 9 #define GrGLSLShaderBuilder_DEFINED
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 void appendDecls(const VarArray& vars, SkString* out) const; 146 void appendDecls(const VarArray& vars, SkString* out) const;
147 147
148 /** 148 /**
149 * Features that should only be enabled internally by the builders. 149 * Features that should only be enabled internally by the builders.
150 */ 150 */
151 enum GLSLPrivateFeature { 151 enum GLSLPrivateFeature {
152 kFragCoordConventions_GLSLPrivateFeature, 152 kFragCoordConventions_GLSLPrivateFeature,
153 kBlendEquationAdvanced_GLSLPrivateFeature, 153 kBlendEquationAdvanced_GLSLPrivateFeature,
154 kBlendFuncExtended_GLSLPrivateFeature, 154 kBlendFuncExtended_GLSLPrivateFeature,
155 kExternalTexture_GLSLPrivateFeature, 155 kExternalTexture_GLSLPrivateFeature,
156 kTexelBuffer_GLSLPrivateFeature,
156 kFramebufferFetch_GLSLPrivateFeature, 157 kFramebufferFetch_GLSLPrivateFeature,
157 kNoPerspectiveInterpolation_GLSLPrivateFeature, 158 kNoPerspectiveInterpolation_GLSLPrivateFeature,
158 kSampleVariables_GLSLPrivateFeature, 159 kSampleVariables_GLSLPrivateFeature,
159 kSampleMaskOverrideCoverage_GLSLPrivateFeature, 160 kSampleMaskOverrideCoverage_GLSLPrivateFeature,
160 kLastGLSLPrivateFeature = kSampleMaskOverrideCoverage_GLSLPrivateFeature 161 kLastGLSLPrivateFeature = kSampleMaskOverrideCoverage_GLSLPrivateFeature
161 }; 162 };
162 163
163 /* 164 /*
164 * A general function which enables an extension in a shader if the feature bit is not present 165 * A general function which enables an extension in a shader if the feature bit is not present
165 * 166 *
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 int fCodeIndex; 240 int fCodeIndex;
240 bool fFinalized; 241 bool fFinalized;
241 242
242 friend class GrGLSLProgramBuilder; 243 friend class GrGLSLProgramBuilder;
243 friend class GrGLProgramBuilder; 244 friend class GrGLProgramBuilder;
244 friend class GrGLSLVaryingHandler; // to access noperspective interpolation feature. 245 friend class GrGLSLVaryingHandler; // to access noperspective interpolation feature.
245 friend class GrGLPathProgramBuilder; // to access fInputs. 246 friend class GrGLPathProgramBuilder; // to access fInputs.
246 friend class GrVkPipelineStateBuilder; 247 friend class GrVkPipelineStateBuilder;
247 }; 248 };
248 #endif 249 #endif
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLProgramBuilder.cpp ('k') | src/gpu/glsl/GrGLSLXferProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698