util/format: Generate floating point constants for clamping.
[mesa.git] / src / gallium / auxiliary / util / u_index_modify.h
index 01a6cae94fc5e8b0356c4a75e16065ab62fc6e99..6afce50b9847c1d76e496230dedc02b9a466ab0c 100644 (file)
 #ifndef UTIL_INDEX_MODIFY_H
 #define UTIL_INDEX_MODIFY_H
 
+struct pipe_context;
+struct pipe_resource;
+struct pipe_index_buffer;
+
+void util_shorten_ubyte_elts_to_userptr(struct pipe_context *context,
+                                       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);
 
+
+
+void util_rebuild_ushort_elts_to_userptr(struct pipe_context *context,
+                                        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_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);
+
 #endif