summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-06-29 12:59:58 -0600
committerBrian <[email protected]>2007-06-29 12:59:58 -0600
commit48076dc784c910dfee1ebaa6970375495209b839 (patch)
tree03dda4e097043445a34ac2ef74ca494b3b537f7c /src
parent34cbcf92af902ac96553a0578badac5140417daa (diff)
added texture types and mapping types
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/p_defines.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h
index a0c4d72a3c2..7212040b362 100644
--- a/src/mesa/pipe/p_defines.h
+++ b/src/mesa/pipe/p_defines.h
@@ -134,10 +134,24 @@
#define PIPE_FORMAT_U_A8 4 /**< ubyte alpha */
#define PIPE_FORMAT_U_I8 5 /**< ubyte intensity */
#define PIPE_FORMAT_U_L8_A8 6 /**< ubyte luminance, alpha */
-
#define PIPE_FORMAT_U_Z16 7 /**< ushort Z/depth */
#define PIPE_FORMAT_F_Z32 8 /**< float Z/depth */
#define PIPE_FORMAT_YCBCR 9
#define PIPE_FORMAT_YCBCR_REV 10
+/**
+ * Texture typess
+ */
+#define PIPE_TEXTURE_1D 0
+#define PIPE_TEXTURE_2D 1
+#define PIPE_TEXTURE_3D 2
+#define PIPE_TEXTURE_CUBE 3
+
+/**
+ * Buffer mapping access modes
+ */
+#define PIPE_MAP_READ 1
+#define PIPE_MAP_WRITE 2
+#define PIPE_MAP_READ_WRITE 3
+
#endif