summaryrefslogtreecommitdiffstats
path: root/src/gallium/docs/source/context.rst
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-03-25 17:10:54 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2014-03-31 21:20:02 -0400
commit24b86cb3047507078ae8d0e2e8943586ee85ede5 (patch)
treef348a97667ae0ba620bd14bdd0d3f972844ea533 /src/gallium/docs/source/context.rst
parent4c035706dc3213d835dbd592655db14732296067 (diff)
downloadexternal_mesa3d-24b86cb3047507078ae8d0e2e8943586ee85ede5.zip
external_mesa3d-24b86cb3047507078ae8d0e2e8943586ee85ede5.tar.gz
external_mesa3d-24b86cb3047507078ae8d0e2e8943586ee85ede5.tar.bz2
gallium: add interface to clear buffers
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/docs/source/context.rst')
-rw-r--r--src/gallium/docs/source/context.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 8e14522..efa2a1c 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -218,6 +218,11 @@ is is also possible to only clear one or the other part). While it is only
possible to clear one surface at a time (which can include several layers),
this surface need not be bound to the framebuffer.
+``clear_buffer`` clears a PIPE_BUFFER resource with the specified clear value
+(which may be multiple bytes in length). Logically this is a memset with a
+multi-byte element value starting at offset bytes from resource start, going
+for size bytes. It is guaranteed that size % clear_value_size == 0.
+
Drawing
^^^^^^^