Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Unified Diff: src/gpu/gl/GrGLCaps.h

Issue 14875002: Add support for GL_*_shader_framebuffer_fetch (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLCaps.h
===================================================================
--- src/gpu/gl/GrGLCaps.h (revision 8966)
+++ src/gpu/gl/GrGLCaps.h (working copy)
@@ -77,8 +77,20 @@
* GL_MAX_SAMPLES value.
*/
kES_EXT_MsToTexture_MSFBOType,
+
+ kLast_MSFBOType = kES_EXT_MsToTexture_MSFBOType
};
+ enum FBFetchType {
+ kNone_FBFetchType,
+ /** GL_EXT_shader_framebuffer_fetch */
+ kEXT_FBFetchType,
+ /** GL_NV_shader_framebuffer_fetch */
+ kNV_FBFetchType,
+
+ kLast_FBFetchType = kNV_FBFetchType,
+ };
+
enum CoverageAAType {
/**
* No coverage sample support
@@ -184,6 +196,8 @@
*/
const MSAACoverageMode& getMSAACoverageMode(int desiredSampleCount) const;
+ FBFetchType fbFetchType() const { return fFBFetchType; }
+
/**
* Prints the caps info using GrPrintf.
*/
@@ -323,6 +337,8 @@
CoverageAAType fCoverageAAType;
SkTDArray<MSAACoverageMode> fMSAACoverageModes;
+ FBFetchType fFBFetchType;
+
bool fRGBA8RenderbufferSupport : 1;
bool fBGRAFormatSupport : 1;
bool fBGRAIsInternalFormat : 1;
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698