mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
Add structs and set-functions for vertex buffer, element state.
Not currently used.
This commit is contained in:
parent
2691b18747
commit
8269bc48d8
2 changed files with 30 additions and 1 deletions
|
|
@ -136,7 +136,15 @@ struct pipe_context {
|
|||
void (*set_viewport_state)( struct pipe_context *,
|
||||
const struct pipe_viewport_state * );
|
||||
|
||||
|
||||
void (*set_vertex_buffer)( struct pipe_context *,
|
||||
unsigned index,
|
||||
struct pipe_vertex_buffer * );
|
||||
|
||||
void (*set_vertex_element)( struct pipe_context *,
|
||||
unsigned index,
|
||||
struct pipe_vertex_element * );
|
||||
|
||||
|
||||
/*
|
||||
* Surface functions
|
||||
* This might go away...
|
||||
|
|
|
|||
|
|
@ -320,4 +320,25 @@ struct pipe_mipmap_tree
|
|||
};
|
||||
|
||||
|
||||
|
||||
struct pipe_vertex_buffer
|
||||
{
|
||||
unsigned pitch:11;
|
||||
unsigned max_index;
|
||||
struct pipe_buffer_handle *buffer;
|
||||
unsigned buffer_offset;
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct pipe_vertex_element
|
||||
{
|
||||
unsigned src_offset:11;
|
||||
unsigned vertex_buffer_index:5;
|
||||
unsigned dst_offset:8;
|
||||
unsigned src_format:8; /* PIPE_FORMAT_* */
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue