}
static inline void
-util_draw_elements(struct pipe_context *pipe, unsigned index_size,
+util_draw_elements(struct pipe_context *pipe,
+ void *indices,
+ unsigned index_size,
int index_bias, enum pipe_prim_type mode,
uint start,
uint count)
struct pipe_draw_info info;
util_draw_init_info(&info);
+ info.index.user = indices;
+ info.has_user_indices = true;
info.index_size = index_size;
info.mode = mode;
info.start = start;
static inline void
util_draw_elements_instanced(struct pipe_context *pipe,
+ void *indices,
unsigned index_size,
int index_bias,
enum pipe_prim_type mode,
struct pipe_draw_info info;
util_draw_init_info(&info);
+ info.index.user = indices;
+ info.has_user_indices = true;
info.index_size = index_size;
info.mode = mode;
info.start = start;