summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_enums.h
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-04-01 22:51:39 -0400
committerKenneth Graunke <kenneth@whitecape.org>2016-08-25 19:22:09 -0700
commit4b6819b407220f5d7d97a40ed9474d7673448370 (patch)
treec538c2b84f567ad4ec1f6393d1f588d910266d05 /src/compiler/shader_enums.h
parente682f945944d7411a87acb4361b11d3ff09aac9f (diff)
downloadexternal_mesa3d-4b6819b407220f5d7d97a40ed9474d7673448370.zip
external_mesa3d-4b6819b407220f5d7d97a40ed9474d7673448370.tar.gz
external_mesa3d-4b6819b407220f5d7d97a40ed9474d7673448370.tar.bz2
glsl: process blend_support_* qualifiers
v2 (Ken): Add a BLEND_NONE enum value (no qualifiers in use). v3 (Ken): Rename gl_blend_support_qualifier to gl_advanced_blend_mode. v4 (Ken): Mark map[] as static const (Ilia). Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/compiler/shader_enums.h')
-rw-r--r--src/compiler/shader_enums.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h
index a69905c..e128b17 100644
--- a/src/compiler/shader_enums.h
+++ b/src/compiler/shader_enums.h
@@ -559,6 +559,32 @@ enum gl_buffer_access_qualifier
ACCESS_VOLATILE = 4,
};
+/**
+ * \brief Blend support qualifiers
+ */
+enum gl_advanced_blend_mode
+{
+ BLEND_NONE = 0x0000,
+
+ BLEND_MULTIPLY = 0x0001,
+ BLEND_SCREEN = 0x0002,
+ BLEND_OVERLAY = 0x0004,
+ BLEND_DARKEN = 0x0008,
+ BLEND_LIGHTEN = 0x0010,
+ BLEND_COLORDODGE = 0x0020,
+ BLEND_COLORBURN = 0x0040,
+ BLEND_HARDLIGHT = 0x0080,
+ BLEND_SOFTLIGHT = 0x0100,
+ BLEND_DIFFERENCE = 0x0200,
+ BLEND_EXCLUSION = 0x0400,
+ BLEND_HSL_HUE = 0x0800,
+ BLEND_HSL_SATURATION = 0x1000,
+ BLEND_HSL_COLOR = 0x2000,
+ BLEND_HSL_LUMINOSITY = 0x4000,
+
+ BLEND_ALL = 0x7fff,
+};
+
#ifdef __cplusplus
} /* extern "C" */
#endif