summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/glsl_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/glsl_types.h')
-rw-r--r--src/glsl/nir/glsl_types.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/glsl/nir/glsl_types.h b/src/glsl/nir/glsl_types.h
index 1f17ad5..d841a32 100644
--- a/src/glsl/nir/glsl_types.h
+++ b/src/glsl/nir/glsl_types.h
@@ -102,6 +102,13 @@ enum glsl_matrix_layout {
GLSL_MATRIX_LAYOUT_ROW_MAJOR
};
+enum {
+ GLSL_PRECISION_NONE = 0,
+ GLSL_PRECISION_HIGH,
+ GLSL_PRECISION_MEDIUM,
+ GLSL_PRECISION_LOW
+};
+
#ifdef __cplusplus
#include "GL/gl.h"
#include "util/ralloc.h"
@@ -320,7 +327,6 @@ struct glsl_type {
*/
unsigned count_attribute_slots() const;
-
/**
* Alignment in bytes of the start of this type in a std140 uniform
* block.
@@ -829,6 +835,11 @@ struct glsl_struct_field {
unsigned patch:1;
/**
+ * Precision qualifier
+ */
+ unsigned precision;
+
+ /**
* Image qualifiers, applicable to buffer variables defined in shader
* storage buffer objects (SSBOs)
*/