pb_vtbl Struct Reference

Virtual function table for the buffer storage operations. More...


Data Fields

void(* destroy )(struct pb_buffer *buf)
void *(* map )(struct pb_buffer *buf, unsigned flags)
 Map the entire data store of a buffer object into the client's address.
void(* unmap )(struct pb_buffer *buf)
void(* get_base_buffer )(struct pb_buffer *buf, struct pb_buffer **base_buf, unsigned *offset)
 Get the base buffer and the offset.


Detailed Description

Virtual function table for the buffer storage operations.

Note that creation is not done through this table.

Definition at line 94 of file pb_buffer.h.


Field Documentation

void(* pb_vtbl::destroy)(struct pb_buffer *buf)

void*(* pb_vtbl::map)(struct pb_buffer *buf, unsigned flags)

Map the entire data store of a buffer object into the client's address.

flags is bitmask of PIPE_BUFFER_FLAG_READ/WRITE.

void(* pb_vtbl::unmap)(struct pb_buffer *buf)

void(* pb_vtbl::get_base_buffer)(struct pb_buffer *buf, struct pb_buffer **base_buf, unsigned *offset)

Get the base buffer and the offset.

A buffer can be subdivided in smaller buffers. This method should return the underlaying buffer, and the relative offset.

Buffers without an underlaying base buffer should return themselves, with a zero offset.

Note that this will increase the reference count of the base buffer.


The documentation for this struct was generated from the following file:
Generated on Tue Sep 29 06:26:03 2009 for Gallium3D by  doxygen 1.5.4