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

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

Issue 1782583002: Add support for vertex and geometry shader textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: better rebase Created 4 years, 9 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/GrGLSLProgramBuilder.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
(...skipping 10 matching lines...) Expand all
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 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 fVersionDeclString = nullptr; 32 fVersionDeclString = nullptr;
32 fShaderDerivativeExtensionString = nullptr; 33 fShaderDerivativeExtensionString = nullptr;
33 fFragCoordConventionsExtensionString = nullptr; 34 fFragCoordConventionsExtensionString = nullptr;
34 fSecondaryOutputExtensionString = nullptr; 35 fSecondaryOutputExtensionString = nullptr;
35 fExternalTextureExtensionString = nullptr; 36 fExternalTextureExtensionString = nullptr;
36 fNoPerspectiveInterpolationExtensionString = nullptr; 37 fNoPerspectiveInterpolationExtensionString = nullptr;
37 fMultisampleInterpolationExtensionString = nullptr; 38 fMultisampleInterpolationExtensionString = nullptr;
38 fSampleVariablesExtensionString = nullptr; 39 fSampleVariablesExtensionString = nullptr;
39 fFBFetchColorName = nullptr; 40 fFBFetchColorName = nullptr;
40 fFBFetchExtensionString = nullptr; 41 fFBFetchExtensionString = nullptr;
42 fMaxVertexSamplers = 0;
43 fMaxGeometrySamplers = 0;
44 fMaxFragmentSamplers = 0;
45 fMaxCombinedSamplers = 0;
41 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; 46 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
42 } 47 }
43 48
44 SkString GrGLSLCaps::dump() const { 49 SkString GrGLSLCaps::dump() const {
45 SkString r = INHERITED::dump(); 50 SkString r = INHERITED::dump();
46 51
47 static const char* kAdvBlendEqInteractionStr[] = { 52 static const char* kAdvBlendEqInteractionStr[] = {
48 "Not Supported", 53 "Not Supported",
49 "Automatic", 54 "Automatic",
50 "General Enable", 55 "General Enable",
(...skipping 16 matching lines...) Expand all
67 r.appendf("Must force negated atan param to float: %s\n", (fMustForceNegated AtanParamToFloat ? 72 r.appendf("Must force negated atan param to float: %s\n", (fMustForceNegated AtanParamToFloat ?
68 "YES" : "NO")); 73 "YES" : "NO"));
69 r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ? "YES" : "NO")); 74 r.appendf("Flat interpolation support: %s\n", (fFlatInterpolationSupport ? "YES" : "NO"));
70 r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInter polationSupport ? 75 r.appendf("No perspective interpolation support: %s\n", (fNoPerspectiveInter polationSupport ?
71 "YES" : "NO")); 76 "YES" : "NO"));
72 r.appendf("Multisample interpolation support: %s\n", (fMultisampleInterpolat ionSupport ? 77 r.appendf("Multisample interpolation support: %s\n", (fMultisampleInterpolat ionSupport ?
73 "YES" : "NO")); 78 "YES" : "NO"));
74 r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES" : "NO")); 79 r.appendf("Sample variables support: %s\n", (fSampleVariablesSupport ? "YES" : "NO"));
75 r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrid eCoverageSupport ? 80 r.appendf("Sample mask override coverage support: %s\n", (fSampleMaskOverrid eCoverageSupport ?
76 "YES" : "NO")); 81 "YES" : "NO"));
82 r.appendf("External texture support: %s\n", (fExternalTextureSupport ? "YES" : "NO"));
83 r.appendf("Max VS Samplers: %d\n", fMaxVertexSamplers);
84 r.appendf("Max GS Samplers: %d\n", fMaxGeometrySamplers);
85 r.appendf("Max FS Samplers: %d\n", fMaxFragmentSamplers);
86 r.appendf("Max Combined Samplers: %d\n", fMaxFragmentSamplers);
77 r.appendf("Advanced blend equation interaction: %s\n", 87 r.appendf("Advanced blend equation interaction: %s\n",
78 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); 88 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
79 return r; 89 return r;
80 } 90 }
81 91
82 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) { 92 void GrGLSLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {
83 } 93 }
84 94
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLCaps.h ('k') | src/gpu/glsl/GrGLSLProgramBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698