Mesa (master): gallium-docs: Moar buffer info.
Corbin Simpson
csimpson at kemper.freedesktop.org
Thu Jan 28 11:07:54 UTC 2010
Module: Mesa
Branch: master
Commit: f0a3f824acdce98b5ca1543ecb3d7a316cfdd108
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0a3f824acdce98b5ca1543ecb3d7a316cfdd108
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Thu Jan 28 02:58:28 2010 -0800
gallium-docs: Moar buffer info.
Oh look, that one question about map_buffer_range is answered.
---
src/gallium/docs/source/screen.rst | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index 7830a9e..1fff20f 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -116,3 +116,38 @@ texture_destroy
Destroy a texture. The buffer backing the texture is destroyed if it has no
more references.
+
+buffer_map
+^^^^^^^^^^
+
+Map a buffer into memory.
+
+**usage** is a bitmask of :ref:`PIPE_TEXTURE_USAGE` flags.
+
+Returns a pointer to the map, or NULL if the mapping failed.
+
+buffer_map_range
+^^^^^^^^^^^^^^^^
+
+Map a range of a buffer into memory.
+
+The returned map is always relative to the beginning of the buffer, not the
+beginning of the mapped range.
+
+.. _buffer_flush_mapped_range:
+
+buffer_flush_mapped_range
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Flush a range of mapped memory into a buffer.
+
+The buffer must have been mapped with ``PIPE_BUFFER_USAGE_FLUSH_EXPLICIT``.
+
+**usage** is a bitmask of :ref:`PIPE_TEXTURE_USAGE` flags.
+
+buffer_unmap
+^^^^^^^^^^^^
+
+Unmap a buffer from memory.
+
+Any pointers into the map should be considered invalid and discarded.
More information about the mesa-commit
mailing list