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

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

Issue 1688233003: Add arb_texture_rectangle support properly in GLES3 shaders Base URL: https://skia.googlesource.com/skia.git@command-buffer-es3
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/GrGLSLCaps.h ('k') | src/gpu/glsl/GrGLSLFragmentShaderBuilder.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 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
11 #include "GrContextOptions.h" 11 #include "GrContextOptions.h"
12 12
13 //////////////////////////////////////////////////////////////////////////////// //////////// 13 //////////////////////////////////////////////////////////////////////////////// ////////////
14 14
15 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { 15 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) {
16 fGLSLGeneration = k330_GrGLSLGeneration; 16 fGLSLGeneration = k330_GrGLSLGeneration;
17 17
18 fDropsTileOnZeroDivide = false; 18 fDropsTileOnZeroDivide = false;
19 fFBFetchSupport = false; 19 fFBFetchSupport = false;
20 fFBFetchNeedsCustomOutput = false; 20 fFBFetchNeedsCustomOutput = false;
21 fBindlessTextureSupport = false; 21 fBindlessTextureSupport = false;
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 // Consistent with the default GLSL generation.
27 fRectangleTextureUseUnifiedTextureFunctionName = true;
26 fVersionDeclString = nullptr; 28 fVersionDeclString = nullptr;
27 fShaderDerivativeExtensionString = nullptr; 29 fShaderDerivativeExtensionString = nullptr;
28 fFragCoordConventionsExtensionString = nullptr; 30 fFragCoordConventionsExtensionString = nullptr;
29 fSecondaryOutputExtensionString = nullptr; 31 fSecondaryOutputExtensionString = nullptr;
30 fExternalTextureExtensionString = nullptr; 32 fExternalTextureExtensionString = nullptr;
33 fRectangleTextureExtensionString = nullptr;
31 fFBFetchColorName = nullptr; 34 fFBFetchColorName = nullptr;
32 fFBFetchExtensionString = nullptr; 35 fFBFetchExtensionString = nullptr;
33 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; 36 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
34 } 37 }
35 38
36 SkString GrGLSLCaps::dump() const { 39 SkString GrGLSLCaps::dump() const {
37 SkString r = INHERITED::dump(); 40 SkString r = INHERITED::dump();
38 41
39 static const char* kAdvBlendEqInteractionStr[] = { 42 static const char* kAdvBlendEqInteractionStr[] = {
40 "Not Supported", 43 "Not Supported",
(...skipping 18 matching lines...) Expand all
59 r.appendf("Must force negated atan param to float: %s\n", (fMustForceNegated AtanParamToFloat ? 62 r.appendf("Must force negated atan param to float: %s\n", (fMustForceNegated AtanParamToFloat ?
60 "YES" : "NO")); 63 "YES" : "NO"));
61 r.appendf("Advanced blend equation interaction: %s\n", 64 r.appendf("Advanced blend equation interaction: %s\n",
62 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); 65 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
63 return r; 66 return r;
64 } 67 }
65 68
66 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { 69 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {
67 } 70 }
68 71
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLCaps.h ('k') | src/gpu/glsl/GrGLSLFragmentShaderBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698