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 #ifndef GrGLCaps_DEFINED | 9 #ifndef GrGLCaps_DEFINED |
10 #define GrGLCaps_DEFINED | 10 #define GrGLCaps_DEFINED |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 /// The maximum number of fragment uniform vectors (GLES has min. 16). | 215 /// The maximum number of fragment uniform vectors (GLES has min. 16). |
216 int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; } | 216 int maxFragmentUniformVectors() const { return fMaxFragmentUniformVectors; } |
217 | 217 |
218 /// maximum number of attribute values per vertex | 218 /// maximum number of attribute values per vertex |
219 int maxVertexAttributes() const { return fMaxVertexAttributes; } | 219 int maxVertexAttributes() const { return fMaxVertexAttributes; } |
220 | 220 |
221 /// maximum number of texture units accessible in the fragment shader. | 221 /// maximum number of texture units accessible in the fragment shader. |
222 int maxFragmentTextureUnits() const { return fMaxFragmentTextureUnits; } | 222 int maxFragmentTextureUnits() const { return fMaxFragmentTextureUnits; } |
223 | 223 |
| 224 /// maximum number of fixed-function texture coords, or zero if no fixed-fun
ction. |
| 225 int maxFixedFunctionTextureCoords() const { return fMaxFixedFunctionTextureC
oords; } |
| 226 |
224 /// ES requires an extension to support RGBA8 in RenderBufferStorage | 227 /// ES requires an extension to support RGBA8 in RenderBufferStorage |
225 bool rgba8RenderbufferSupport() const { return fRGBA8RenderbufferSupport; } | 228 bool rgba8RenderbufferSupport() const { return fRGBA8RenderbufferSupport; } |
226 | 229 |
227 /// Is GL_BGRA supported | 230 /// Is GL_BGRA supported |
228 bool bgraFormatSupport() const { return fBGRAFormatSupport; } | 231 bool bgraFormatSupport() const { return fBGRAFormatSupport; } |
229 | 232 |
230 /** | 233 /** |
231 * Depending on the ES extensions present the BGRA external format may | 234 * Depending on the ES extensions present the BGRA external format may |
232 * correspond either a BGRA or RGBA internalFormat. On desktop GL it is | 235 * correspond either a BGRA or RGBA internalFormat. On desktop GL it is |
233 * RGBA. | 236 * RGBA. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 332 |
330 SkTArray<StencilFormat, true> fStencilFormats; | 333 SkTArray<StencilFormat, true> fStencilFormats; |
331 // tracks configs that have been verified to pass the FBO completeness when | 334 // tracks configs that have been verified to pass the FBO completeness when |
332 // used as a color attachment when a particular stencil format is used | 335 // used as a color attachment when a particular stencil format is used |
333 // as a stencil attachment. | 336 // as a stencil attachment. |
334 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; | 337 SkTArray<VerifiedColorConfigs, true> fStencilVerifiedColorConfigs; |
335 | 338 |
336 int fMaxFragmentUniformVectors; | 339 int fMaxFragmentUniformVectors; |
337 int fMaxVertexAttributes; | 340 int fMaxVertexAttributes; |
338 int fMaxFragmentTextureUnits; | 341 int fMaxFragmentTextureUnits; |
| 342 int fMaxFixedFunctionTextureCoords; |
339 | 343 |
340 MSFBOType fMSFBOType; | 344 MSFBOType fMSFBOType; |
341 CoverageAAType fCoverageAAType; | 345 CoverageAAType fCoverageAAType; |
342 SkTDArray<MSAACoverageMode> fMSAACoverageModes; | 346 SkTDArray<MSAACoverageMode> fMSAACoverageModes; |
343 | 347 |
344 FBFetchType fFBFetchType; | 348 FBFetchType fFBFetchType; |
345 | 349 |
346 bool fRGBA8RenderbufferSupport : 1; | 350 bool fRGBA8RenderbufferSupport : 1; |
347 bool fBGRAFormatSupport : 1; | 351 bool fBGRAFormatSupport : 1; |
348 bool fBGRAIsInternalFormat : 1; | 352 bool fBGRAIsInternalFormat : 1; |
(...skipping 10 matching lines...) Expand all Loading... |
359 bool fFragCoordsConventionSupport : 1; | 363 bool fFragCoordsConventionSupport : 1; |
360 bool fVertexArrayObjectSupport : 1; | 364 bool fVertexArrayObjectSupport : 1; |
361 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 365 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
362 bool fIsCoreProfile : 1; | 366 bool fIsCoreProfile : 1; |
363 bool fDiscardFBSupport : 1; | 367 bool fDiscardFBSupport : 1; |
364 | 368 |
365 typedef GrDrawTargetCaps INHERITED; | 369 typedef GrDrawTargetCaps INHERITED; |
366 }; | 370 }; |
367 | 371 |
368 #endif | 372 #endif |
OLD | NEW |