Index: src/gpu/gl/GrGLCaps.h |
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h |
index 044ecce81438c5f67494b008abd16e890baeb8a4..7d08a6b051427af2b97d20610779d9f5e7e4fd06 100644 |
--- a/src/gpu/gl/GrGLCaps.h |
+++ b/src/gpu/gl/GrGLCaps.h |
@@ -283,6 +283,23 @@ public: |
/// Can we call glDisable(GL_MULTISAMPLE)? |
bool multisampleDisableSupport() const { return fMultisampleDisableSupport; } |
+ /// Is there support for glDraw*Indirect? Note that the baseInstance fields of indirect draw |
+ /// commands cannot be used unless we have base instance support. |
+ bool drawIndirectSupport() const { |
bsalomon
2016/02/04 16:33:41
maybe make these one line just to match the simila
Chris Dalton
2016/02/04 20:45:55
Oops, don't know how I missed that :-\
|
+ return fDrawIndirectSupport; |
+ } |
+ |
+ /// Is there support for glMultiDraw*Indirect? Note that the baseInstance fields of indirect |
+ /// draw commands cannot be used unless we have base instance support. |
+ bool multiDrawIndirectSupport() const { |
+ return fMultiDrawIndirectSupport; |
+ } |
+ |
+ /// Are the baseInstance fields supported in indirect draw commands? |
+ bool baseInstanceSupport() const { |
+ return fBaseInstanceSupport; |
+ } |
+ |
/// Use indices or vertices in CPU arrays rather than VBOs for dynamic content. |
bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAndIndexDynamicData; } |
@@ -378,6 +395,9 @@ private: |
bool fDebugSupport : 1; |
bool fES2CompatibilitySupport : 1; |
bool fMultisampleDisableSupport : 1; |
+ bool fDrawIndirectSupport : 1; |
+ bool fMultiDrawIndirectSupport : 1; |
+ bool fBaseInstanceSupport : 1; |
bool fUseNonVBOVertexAndIndexDynamicData : 1; |
bool fIsCoreProfile : 1; |
bool fBindFragDataLocationSupport : 1; |