summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-29 13:10:47 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-29 13:10:47 -0600
commitd523a04853fe9924d8dbf86da08019d17d4f58ef (patch)
tree58d44f02c4280b8fbd082ca0de82f4df49babf88
parente62cf5c69ab605b78324639f5455ac9921e68dba (diff)
added buffer_data(), buffer_sub_data() to pipe_buffer
-rw-r--r--src/mesa/pipe/p_state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 6a9a86fa97..66a53483a3 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -229,6 +229,9 @@ struct pipe_sampler_state
*/
struct pipe_buffer
{
+ void (*buffer_data)(struct pipe_buffer *pb, GLuint size, const void *src);
+ void (*buffer_sub_data)(struct pipe_buffer *pb, GLuint offset, GLuint size,
+ const void *src);
void *(*map)(struct pipe_buffer *pb, GLuint access_mode);
void (*unmap)(struct pipe_buffer *pb);
void *ptr; /**< address, only valid while mapped */