summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_upload_mgr.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-01-06 00:26:02 +0100
committerMarek Olšák <maraeo@gmail.com>2011-01-06 16:16:30 +0100
commit45b51a9e7021c004c754e1903afeb15fd885109e (patch)
tree714b1ffdf92fbf751997dbb0a1088c35c18f2235 /src/gallium/auxiliary/util/u_upload_mgr.h
parent984d64881fbdd6524bbd4f78ef7f9daaa6c5567b (diff)
util: add comments to u_upload_mgr and u_inlines
Diffstat (limited to 'src/gallium/auxiliary/util/u_upload_mgr.h')
-rw-r--r--src/gallium/auxiliary/util/u_upload_mgr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_upload_mgr.h b/src/gallium/auxiliary/util/u_upload_mgr.h
index fc8f4d3687..c9a2ffeb57 100644
--- a/src/gallium/auxiliary/util/u_upload_mgr.h
+++ b/src/gallium/auxiliary/util/u_upload_mgr.h
@@ -38,11 +38,22 @@ struct pipe_context;
struct pipe_resource;
+/**
+ * Create the upload manager.
+ *
+ * \param pipe Pipe driver.
+ * \param default_size Minimum size of the upload buffer, in bytes.
+ * \param alignment Alignment of each suballocation in the upload buffer.
+ * \param bind Bitmask of PIPE_BIND_* flags.
+ */
struct u_upload_mgr *u_upload_create( struct pipe_context *pipe,
unsigned default_size,
unsigned alignment,
unsigned bind );
+/**
+ * Destroy the upload manager.
+ */
void u_upload_destroy( struct u_upload_mgr *upload );
/* Unmap and release old buffer.