| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 /// Is there support for GL_EXT_direct_state_access? | 290 /// Is there support for GL_EXT_direct_state_access? |
| 291 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } | 291 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } |
| 292 | 292 |
| 293 /// Is there support for GL_KHR_debug? | 293 /// Is there support for GL_KHR_debug? |
| 294 bool debugSupport() const { return fDebugSupport; } | 294 bool debugSupport() const { return fDebugSupport; } |
| 295 | 295 |
| 296 /// Is there support for ES2 compatability? | 296 /// Is there support for ES2 compatability? |
| 297 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } | 297 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } |
| 298 | 298 |
| 299 /// Is there support for glDraw*Instanced? |
| 300 bool drawInstancedSupport() const { return fDrawInstancedSupport; } |
| 301 |
| 299 /// 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 |
| 300 /// commands cannot be used unless we have base instance support. | 303 /// commands cannot be used unless we have base instance support. |
| 301 bool drawIndirectSupport() const { return fDrawIndirectSupport; } | 304 bool drawIndirectSupport() const { return fDrawIndirectSupport; } |
| 302 | 305 |
| 303 /// 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 |
| 304 /// draw commands cannot be used unless we have base instance support. | 307 /// draw commands cannot be used unless we have base instance support. |
| 305 bool multiDrawIndirectSupport() const { return fMultiDrawIndirectSupport; } | 308 bool multiDrawIndirectSupport() const { return fMultiDrawIndirectSupport; } |
| 306 | 309 |
| 307 /// Are the baseInstance fields supported in indirect draw commands? | 310 /// Are the baseInstance fields supported in indirect draw commands? |
| 308 bool baseInstanceSupport() const { return fBaseInstanceSupport; } | 311 bool baseInstanceSupport() const { return fBaseInstanceSupport; } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 bool fUnpackFlipYSupport : 1; | 391 bool fUnpackFlipYSupport : 1; |
| 389 bool fPackRowLengthSupport : 1; | 392 bool fPackRowLengthSupport : 1; |
| 390 bool fPackFlipYSupport : 1; | 393 bool fPackFlipYSupport : 1; |
| 391 bool fTextureUsageSupport : 1; | 394 bool fTextureUsageSupport : 1; |
| 392 bool fTextureRedSupport : 1; | 395 bool fTextureRedSupport : 1; |
| 393 bool fImagingSupport : 1; | 396 bool fImagingSupport : 1; |
| 394 bool fVertexArrayObjectSupport : 1; | 397 bool fVertexArrayObjectSupport : 1; |
| 395 bool fDirectStateAccessSupport : 1; | 398 bool fDirectStateAccessSupport : 1; |
| 396 bool fDebugSupport : 1; | 399 bool fDebugSupport : 1; |
| 397 bool fES2CompatibilitySupport : 1; | 400 bool fES2CompatibilitySupport : 1; |
| 401 bool fDrawInstancedSupport : 1; |
| 398 bool fDrawIndirectSupport : 1; | 402 bool fDrawIndirectSupport : 1; |
| 399 bool fMultiDrawIndirectSupport : 1; | 403 bool fMultiDrawIndirectSupport : 1; |
| 400 bool fBaseInstanceSupport : 1; | 404 bool fBaseInstanceSupport : 1; |
| 401 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 405 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
| 402 bool fIsCoreProfile : 1; | 406 bool fIsCoreProfile : 1; |
| 403 bool fBindFragDataLocationSupport : 1; | 407 bool fBindFragDataLocationSupport : 1; |
| 404 bool fRGBA8888PixelsOpsAreSlow : 1; | 408 bool fRGBA8888PixelsOpsAreSlow : 1; |
| 405 bool fPartialFBOReadIsSlow : 1; | 409 bool fPartialFBOReadIsSlow : 1; |
| 406 bool fBindUniformLocationSupport : 1; | 410 bool fBindUniformLocationSupport : 1; |
| 407 bool fRectangleTextureSupport : 1; | 411 bool fRectangleTextureSupport : 1; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 485 |
| 482 GrSwizzle fSwizzle; | 486 GrSwizzle fSwizzle; |
| 483 }; | 487 }; |
| 484 | 488 |
| 485 ConfigInfo fConfigTable[kGrPixelConfigCnt]; | 489 ConfigInfo fConfigTable[kGrPixelConfigCnt]; |
| 486 | 490 |
| 487 typedef GrCaps INHERITED; | 491 typedef GrCaps INHERITED; |
| 488 }; | 492 }; |
| 489 | 493 |
| 490 #endif | 494 #endif |
| OLD | NEW |