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 |
11 ////////////////////////////////////////////////////////////////////////////////
//////////// | 11 ////////////////////////////////////////////////////////////////////////////////
//////////// |
12 | 12 |
13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { | 13 GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options) { |
14 fGLSLGeneration = k330_GrGLSLGeneration; | 14 fGLSLGeneration = k330_GrGLSLGeneration; |
15 | 15 |
16 fDropsTileOnZeroDivide = false; | 16 fDropsTileOnZeroDivide = false; |
17 fFBFetchSupport = false; | 17 fFBFetchSupport = false; |
18 fFBFetchNeedsCustomOutput = false; | 18 fFBFetchNeedsCustomOutput = false; |
19 fBindlessTextureSupport = false; | 19 fBindlessTextureSupport = false; |
20 fUsesPrecisionModifiers = false; | 20 fUsesPrecisionModifiers = false; |
21 fCanUseAnyFunctionInShader = true; | 21 fCanUseAnyFunctionInShader = true; |
22 fForceHighPrecisionNDSTransform = false; | 22 fForceHighPrecisionNDSTransform = false; |
23 fVersionDeclString = nullptr; | 23 fVersionDeclString = nullptr; |
| 24 fShaderDerivativeExtensionString = nullptr; |
24 fFBFetchColorName = nullptr; | 25 fFBFetchColorName = nullptr; |
25 fFBFetchExtensionString = nullptr; | 26 fFBFetchExtensionString = nullptr; |
26 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; | 27 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
27 } | 28 } |
28 | 29 |
29 SkString GrGLSLCaps::dump() const { | 30 SkString GrGLSLCaps::dump() const { |
30 SkString r = INHERITED::dump(); | 31 SkString r = INHERITED::dump(); |
31 | 32 |
32 static const char* kAdvBlendEqInteractionStr[] = { | 33 static const char* kAdvBlendEqInteractionStr[] = { |
33 "Not Supported", | 34 "Not Supported", |
(...skipping 14 matching lines...) Expand all Loading... |
48 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES"
: "NO")); | 49 r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES"
: "NO")); |
49 r.appendf("Uses precision modifiers: %s\n", (fUsesPrecisionModifiers ? "YES"
: "NO")); | 50 r.appendf("Uses precision modifiers: %s\n", (fUsesPrecisionModifiers ? "YES"
: "NO")); |
50 r.appendf("Can Use any() function: %s\n", (fCanUseAnyFunctionInShader ? "YES
" : "NO")); | 51 r.appendf("Can Use any() function: %s\n", (fCanUseAnyFunctionInShader ? "YES
" : "NO")); |
51 r.appendf("Force high precision on NDS transform: %s\n", (fForceHighPrecisio
nNDSTransform ? | 52 r.appendf("Force high precision on NDS transform: %s\n", (fForceHighPrecisio
nNDSTransform ? |
52 "YES" : "NO")); | 53 "YES" : "NO")); |
53 r.appendf("Advanced blend equation interaction: %s\n", | 54 r.appendf("Advanced blend equation interaction: %s\n", |
54 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); | 55 kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]); |
55 return r; | 56 return r; |
56 } | 57 } |
57 | 58 |
OLD | NEW |