summaryrefslogtreecommitdiffstats
path: root/src/glsl/shader_enums.h
diff options
context:
space:
mode:
authorFabian Bieler <[email protected]>2014-03-20 22:41:40 +0100
committerMarek Olšák <[email protected]>2015-07-23 00:59:26 +0200
commit1036b024d4c8ce2376ac41219dfda01d5a59b3ef (patch)
treeda4b0962904769b9c904604689e4527e17036f23 /src/glsl/shader_enums.h
parent497eb295838baccde1420adfcc4ef7e8fdddd774 (diff)
glsl: add tessellation shader defines and built-in variables.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/shader_enums.h')
-rw-r--r--src/glsl/shader_enums.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/glsl/shader_enums.h b/src/glsl/shader_enums.h
index 42a30ae8fb9..3c3941645f0 100644
--- a/src/glsl/shader_enums.h
+++ b/src/glsl/shader_enums.h
@@ -152,7 +152,7 @@ typedef enum
* \name Geometry shader system values
*/
/*@{*/
- SYSTEM_VALUE_INVOCATION_ID,
+ SYSTEM_VALUE_INVOCATION_ID, /**< (Also in Tessellation Control shader) */
/*@}*/
/**
@@ -165,6 +165,17 @@ typedef enum
SYSTEM_VALUE_SAMPLE_MASK_IN,
/*@}*/
+ /**
+ * \name Tessellation Evaluation shader system values
+ */
+ /*@{*/
+ SYSTEM_VALUE_TESS_COORD,
+ SYSTEM_VALUE_VERTICES_IN, /**< Tessellation vertices in input patch */
+ SYSTEM_VALUE_PRIMITIVE_ID, /**< (currently not used by GS) */
+ SYSTEM_VALUE_TESS_LEVEL_OUTER, /**< TES input */
+ SYSTEM_VALUE_TESS_LEVEL_INNER, /**< TES input */
+ /*@}*/
+
SYSTEM_VALUE_MAX /**< Number of values */
} gl_system_value;