diff options
author | Rob Clark <[email protected]> | 2013-10-25 15:22:06 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-10-29 16:49:43 -0400 |
commit | 28f3f8d413f6bf29f051d54479d9ae90bb16a55e (patch) | |
tree | 723e5489d29c154bf2e6465d1af8701211823307 /src/gallium/auxiliary/indices/u_indices.h | |
parent | 5127436a4a1a7fb56acbd2934318d3053f37af68 (diff) |
gallium/auxiliary/indices: add start param
Add 'start' parameter to generator/translator.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/indices/u_indices.h')
-rw-r--r-- | src/gallium/auxiliary/indices/u_indices.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/indices/u_indices.h b/src/gallium/auxiliary/indices/u_indices.h index be522c67252..331d0fd0042 100644 --- a/src/gallium/auxiliary/indices/u_indices.h +++ b/src/gallium/auxiliary/indices/u_indices.h @@ -31,11 +31,30 @@ #define PV_LAST 1 #define PV_COUNT 2 +/** + * Index translator function (for glDrawElements() case) + * + * \param in the input index buffer + * \param start the index of the first vertex (pipe_draw_info::start) + * \param nr the number of vertices (pipe_draw_info::count) + * \param out output buffer big enough or nr vertices (of + * @out_index_size bytes each) + */ typedef void (*u_translate_func)( const void *in, + unsigned start, unsigned nr, void *out ); -typedef void (*u_generate_func)( unsigned nr, +/** + * Index generator function (for glDrawArrays() case) + * + * \param start the index of the first vertex (pipe_draw_info::start) + * \param nr the number of vertices (pipe_draw_info::count) + * \param out output buffer big enough or nr vertices (of + * @out_index_size bytes each) + */ +typedef void (*u_generate_func)( unsigned start, + unsigned nr, void *out ); |