util/format: Generate floating point constants for clamping.
[mesa.git] / src / gallium / auxiliary / util / u_index_modify.h
index 1e9de3dfac883feb378dd439fa71580fe069a8c6..6afce50b9847c1d76e496230dedc02b9a466ab0c 100644 (file)
 
 struct pipe_context;
 struct pipe_resource;
+struct pipe_index_buffer;
 
 void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
-                                       struct pipe_resource *elts,
+                                       struct pipe_index_buffer *ib,
                                        int index_bias,
                                        unsigned start,
                                        unsigned count,
                                        void *out);
 
 void util_shorten_ubyte_elts(struct pipe_context *context,
-                            struct pipe_resource **elts,
+                            struct pipe_index_buffer *ib,
+                            struct pipe_resource **out_buf,
                             int index_bias,
                             unsigned start,
                             unsigned count);
@@ -42,26 +44,28 @@ void util_shorten_ubyte_elts(struct pipe_context *context,
 
 
 void util_rebuild_ushort_elts_to_userptr(struct pipe_context *context,
-                                        struct pipe_resource *elts,
+                                        struct pipe_index_buffer *ib,
                                         int index_bias,
                                         unsigned start, unsigned count,
                                         void *out);
 
 void util_rebuild_ushort_elts(struct pipe_context *context,
-                             struct pipe_resource **elts,
+                             struct pipe_index_buffer *ib,
+                             struct pipe_resource **out_buf,
                              int index_bias,
                              unsigned start, unsigned count);
 
 
 
 void util_rebuild_uint_elts_to_userptr(struct pipe_context *context,
-                                      struct pipe_resource *elts,
+                                      struct pipe_index_buffer *ib,
                                       int index_bias,
                                       unsigned start, unsigned count,
                                       void *out);
 
 void util_rebuild_uint_elts(struct pipe_context *context,
-                           struct pipe_resource **elts,
+                           struct pipe_index_buffer *ib,
+                           struct pipe_resource **out_buf,
                            int index_bias,
                            unsigned start, unsigned count);