| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 bool drawInstancedSupport() const { return fDrawInstancedSupport; } | 300 bool drawInstancedSupport() const { return fDrawInstancedSupport; } |
| 301 | 301 |
| 302 /// Is there support for glDraw*Indirect? Note that the baseInstance fields
of indirect draw | 302 /// Is there support for glDraw*Indirect? Note that the baseInstance fields
of indirect draw |
| 303 /// commands cannot be used unless we have base instance support. | 303 /// commands cannot be used unless we have base instance support. |
| 304 bool drawIndirectSupport() const { return fDrawIndirectSupport; } | 304 bool drawIndirectSupport() const { return fDrawIndirectSupport; } |
| 305 | 305 |
| 306 /// Is there support for glMultiDraw*Indirect? Note that the baseInstance fi
elds of indirect | 306 /// Is there support for glMultiDraw*Indirect? Note that the baseInstance fi
elds of indirect |
| 307 /// draw commands cannot be used unless we have base instance support. | 307 /// draw commands cannot be used unless we have base instance support. |
| 308 bool multiDrawIndirectSupport() const { return fMultiDrawIndirectSupport; } | 308 bool multiDrawIndirectSupport() const { return fMultiDrawIndirectSupport; } |
| 309 | 309 |
| 310 /// Is there support for glDrawRangeElements? |
| 311 bool drawRangeElementsSupport() const { return fDrawRangeElementsSupport; } |
| 312 |
| 310 /// Are the baseInstance fields supported in indirect draw commands? | 313 /// Are the baseInstance fields supported in indirect draw commands? |
| 311 bool baseInstanceSupport() const { return fBaseInstanceSupport; } | 314 bool baseInstanceSupport() const { return fBaseInstanceSupport; } |
| 312 | 315 |
| 313 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. | 316 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte
nt. |
| 314 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd
IndexDynamicData; } | 317 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd
IndexDynamicData; } |
| 315 | 318 |
| 316 /// Does ReadPixels support reading readConfig pixels from a FBO that is ren
derTargetConfig? | 319 /// Does ReadPixels support reading readConfig pixels from a FBO that is ren
derTargetConfig? |
| 317 bool readPixelsSupported(GrPixelConfig renderTargetConfig, | 320 bool readPixelsSupported(GrPixelConfig renderTargetConfig, |
| 318 GrPixelConfig readConfig, | 321 GrPixelConfig readConfig, |
| 319 std::function<void (GrGLenum, GrGLint*)> getInteger
v, | 322 std::function<void (GrGLenum, GrGLint*)> getInteger
v, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 bool fPackFlipYSupport : 1; | 396 bool fPackFlipYSupport : 1; |
| 394 bool fTextureUsageSupport : 1; | 397 bool fTextureUsageSupport : 1; |
| 395 bool fTextureRedSupport : 1; | 398 bool fTextureRedSupport : 1; |
| 396 bool fImagingSupport : 1; | 399 bool fImagingSupport : 1; |
| 397 bool fVertexArrayObjectSupport : 1; | 400 bool fVertexArrayObjectSupport : 1; |
| 398 bool fDirectStateAccessSupport : 1; | 401 bool fDirectStateAccessSupport : 1; |
| 399 bool fDebugSupport : 1; | 402 bool fDebugSupport : 1; |
| 400 bool fES2CompatibilitySupport : 1; | 403 bool fES2CompatibilitySupport : 1; |
| 401 bool fDrawInstancedSupport : 1; | 404 bool fDrawInstancedSupport : 1; |
| 402 bool fDrawIndirectSupport : 1; | 405 bool fDrawIndirectSupport : 1; |
| 406 bool fDrawRangeElementsSupport : 1; |
| 403 bool fMultiDrawIndirectSupport : 1; | 407 bool fMultiDrawIndirectSupport : 1; |
| 404 bool fBaseInstanceSupport : 1; | 408 bool fBaseInstanceSupport : 1; |
| 405 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 409 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 406 bool fIsCoreProfile : 1; | 410 bool fIsCoreProfile : 1; |
| 407 bool fBindFragDataLocationSupport : 1; | 411 bool fBindFragDataLocationSupport : 1; |
| 408 bool fRGBA8888PixelsOpsAreSlow : 1; | 412 bool fRGBA8888PixelsOpsAreSlow : 1; |
| 409 bool fPartialFBOReadIsSlow : 1; | 413 bool fPartialFBOReadIsSlow : 1; |
| 410 bool fBindUniformLocationSupport : 1; | 414 bool fBindUniformLocationSupport : 1; |
| 411 bool fRectangleTextureSupport : 1; | 415 bool fRectangleTextureSupport : 1; |
| 412 bool fTextureSwizzleSupport : 1; | 416 bool fTextureSwizzleSupport : 1; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 489 |
| 486 GrSwizzle fSwizzle; | 490 GrSwizzle fSwizzle; |
| 487 }; | 491 }; |
| 488 | 492 |
| 489 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 493 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
| 490 | 494 |
| 491 typedef GrCaps INHERITED; | 495 typedef GrCaps INHERITED; |
| 492 }; | 496 }; |
| 493 | 497 |
| 494 #endif | 498 #endif |
| OLD | NEW |