summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-14 15:42:47 +0100
committerKeith Whitwell <[email protected]>2007-08-14 15:57:30 +0100
commit8269bc48d8fafaa432b58f4adf5e0dddd81d979d (patch)
treee8e26d08502880acde3baff6ee2d60d251b763fc /src/mesa/pipe/p_state.h
parent2691b187473ddb9c96541cd154dde19c35cbaabe (diff)
Add structs and set-functions for vertex buffer, element state.
Not currently used.
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index dc2b589e555..5051ebbfc05 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -320,4 +320,25 @@ struct pipe_mipmap_tree
};
+
+struct pipe_vertex_buffer
+{
+ unsigned pitch:11;
+ unsigned max_index;
+ struct pipe_buffer_handle *buffer;
+ unsigned buffer_offset;
+};
+
+
+
+struct pipe_vertex_element
+{
+ unsigned src_offset:11;
+ unsigned vertex_buffer_index:5;
+ unsigned dst_offset:8;
+ unsigned src_format:8; /* PIPE_FORMAT_* */
+};
+
+
+
#endif