mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 11:50:36 +02:00
aux/util: use enum for primitive-type
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002>
This commit is contained in:
parent
70e153e8d0
commit
ae0df2a52f
2 changed files with 7 additions and 5 deletions
|
|
@ -44,7 +44,7 @@ util_draw_vertex_buffer(struct pipe_context *pipe,
|
|||
struct pipe_resource *vbuf,
|
||||
uint vbuf_slot,
|
||||
uint offset,
|
||||
uint prim_type,
|
||||
enum mesa_prim prim_type,
|
||||
uint num_verts,
|
||||
uint num_attribs)
|
||||
{
|
||||
|
|
@ -76,7 +76,8 @@ util_draw_vertex_buffer(struct pipe_context *pipe,
|
|||
*/
|
||||
void
|
||||
util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
|
||||
uint prim_type, uint num_verts, uint num_attribs)
|
||||
enum mesa_prim prim_type, uint num_verts,
|
||||
uint num_attribs)
|
||||
{
|
||||
struct pipe_vertex_buffer vbuffer = {0};
|
||||
|
||||
|
|
|
|||
|
|
@ -44,12 +44,13 @@ struct cso_context;
|
|||
extern void
|
||||
util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso,
|
||||
struct pipe_resource *vbuf, uint vbuf_slot,
|
||||
uint offset, uint prim_type, uint num_attribs,
|
||||
uint num_verts);
|
||||
uint offset, enum mesa_prim prim_type,
|
||||
uint num_attribs, uint num_verts);
|
||||
|
||||
void
|
||||
util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
|
||||
uint prim_type, uint num_verts, uint num_attribs);
|
||||
enum mesa_prim prim_type, uint num_verts,
|
||||
uint num_attribs);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue