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.
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,