Add structs and set-functions for vertex buffer, element state.
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 14 Aug 2007 14:42:47 +0000 (15:42 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 14 Aug 2007 14:57:30 +0000 (15:57 +0100)
Not currently used.

src/mesa/pipe/p_context.h
src/mesa/pipe/p_state.h

index 76357559478b960ad7021c55ef2521dcfeda5bb5..c0685fa8cbac9ad94ab7ebe0e4316b64226a30a9 100644 (file)
@@ -136,7 +136,15 @@ struct pipe_context {
    void (*set_viewport_state)( struct pipe_context *,
                                const struct pipe_viewport_state * );
 
-
+   void (*set_vertex_buffer)( struct pipe_context *,
+                              unsigned index,
+                              struct pipe_vertex_buffer * );
+   
+   void (*set_vertex_element)( struct pipe_context *,
+                              unsigned index,
+                              struct pipe_vertex_element * );
+                              
+   
    /*
     * Surface functions
     * This might go away...
index dc2b589e55502e33f3db6f38a107cdfef1c06738..5051ebbfc05cf527b212565fa64b1809dffcf9c7 100644 (file)
@@ -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