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

Unified Diff: include/gpu/GrEffect.h

Issue 12531015: Adds local coords to GrEffect system. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | « include/gpu/GrDrawEffect.h ('k') | include/gpu/GrEffectStage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffect.h
===================================================================
--- include/gpu/GrEffect.h (revision 8241)
+++ include/gpu/GrEffect.h (working copy)
@@ -70,6 +70,20 @@
public:
SK_DECLARE_INST_COUNT(GrEffect)
+ /**
+ * The types of vertex coordinates available to an effect in the vertex shader. Effects can
+ * require their own vertex attribute but these coordinates are made available by the framework
+ * in all programs. kCustom_CoordsType is provided to signify that an alternative set of coords
+ * is used (usually an explicit vertex attribute) but its meaning is determined by the effect
+ * subclass.
+ */
+ enum CoordsType {
+ kLocal_CoordsType,
+ kPosition_CoordsType,
+
+ kCustom_CoordsType,
+ };
+
virtual ~GrEffect();
/**
« no previous file with comments | « include/gpu/GrDrawEffect.h ('k') | include/gpu/GrEffectStage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698