diff options
author | marha <marha@users.sourceforge.net> | 2011-10-28 14:48:08 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-10-28 14:48:08 +0200 |
commit | 6f4feafd4d22beaabfb0202e66b0dea9047ee084 (patch) | |
tree | a317af068ea091dc6d2142802ab316b941682544 /mesalib/src/mesa/main/mtypes.h | |
parent | d662d461634660f5c0f3998b5eb7d7ed3bd5a25f (diff) | |
download | vcxsrv-6f4feafd4d22beaabfb0202e66b0dea9047ee084.tar.gz vcxsrv-6f4feafd4d22beaabfb0202e66b0dea9047ee084.tar.bz2 vcxsrv-6f4feafd4d22beaabfb0202e66b0dea9047ee084.zip |
mesa git update 28 okt 2011
Diffstat (limited to 'mesalib/src/mesa/main/mtypes.h')
-rw-r--r-- | mesalib/src/mesa/main/mtypes.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/mtypes.h b/mesalib/src/mesa/main/mtypes.h index 411768641..aa3fa6aec 100644 --- a/mesalib/src/mesa/main/mtypes.h +++ b/mesalib/src/mesa/main/mtypes.h @@ -1790,6 +1790,22 @@ typedef enum } gl_system_value; +/** + * The possible interpolation qualifiers that can be applied to a fragment + * shader input in GLSL. + * + * Note: INTERP_QUALIFIER_NONE must be 0 so that memsetting the + * gl_fragment_program data structure to 0 causes the default behavior. + */ +enum glsl_interp_qualifier +{ + INTERP_QUALIFIER_NONE = 0, + INTERP_QUALIFIER_SMOOTH, + INTERP_QUALIFIER_FLAT, + INTERP_QUALIFIER_NOPERSPECTIVE +}; + + /** Vertex and fragment instructions */ struct prog_instruction; struct gl_program_parameter_list; @@ -1890,6 +1906,13 @@ struct gl_fragment_program GLboolean OriginUpperLeft; GLboolean PixelCenterInteger; enum gl_frag_depth_layout FragDepthLayout; + + /** + * GLSL interpolation qualifier associated with each fragment shader input. + * For inputs that do not have an interpolation qualifier specified in + * GLSL, the value is INTERP_QUALIFIER_NONE. + */ + enum glsl_interp_qualifier InterpQualifier[FRAG_ATTRIB_MAX]; }; |