diff options
author | Brian <[email protected]> | 2007-10-10 17:57:47 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-10 17:57:47 -0600 |
commit | fcdd34de4b169dc12991f7894266ee834e9bf768 (patch) | |
tree | 1050d5fe34d2183e4baf7a4716714732bdb07a66 /src/mesa | |
parent | 3f226d4bafcc7b174ee42e4b5a2a4fb3756758ad (diff) |
Added user_buffer_create() method
This is used to wrap user-space data in a pipe buffer object to allow more
uniform treatment of various things. For example, wrapping client-side
vertex arrays so they look like VBOs.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/pipe/p_winsys.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_winsys.h b/src/mesa/pipe/p_winsys.h index 73ac61c33a2..c80559c7303 100644 --- a/src/mesa/pipe/p_winsys.h +++ b/src/mesa/pipe/p_winsys.h @@ -71,6 +71,12 @@ struct pipe_winsys struct pipe_buffer_handle *(*buffer_create)(struct pipe_winsys *sws, unsigned alignment ); + /** Create a buffer that wraps user-space data */ + struct pipe_buffer_handle *(*user_buffer_create)(struct pipe_winsys *sws, + void *ptr, + unsigned bytes); + + /** flags is bitmask of PIPE_BUFFER_FLAG_READ/WRITE */ void *(*buffer_map)( struct pipe_winsys *sws, struct pipe_buffer_handle *buf, |