Mesa (gallium-sampler-view): docs: Document sampler view entry points.

Michał Król michal at kemper.freedesktop.org
Thu Feb 25 14:33:27 UTC 2010


Module: Mesa
Branch: gallium-sampler-view
Commit: e81caade02a51da65eb28eba6816503305a97920
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e81caade02a51da65eb28eba6816503305a97920

Author: Michal Krol <michal at vmware.com>
Date:   Thu Feb 25 15:33:15 2010 +0100

docs: Document sampler view entry points.

---

 src/gallium/docs/source/context.rst |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 827db83..2d495f5 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -39,10 +39,24 @@ buffers, surfaces) are bound to the driver.
   are mostly restricted to the first one right now).
 
 * ``set_framebuffer_state``
-* ``set_fragment_sampler_views``
-* ``set_vertex_sampler_views``
-* ``create_sampler_view``
-* ``sampler_view_destroy``
+
+* ``set_fragment_sampler_views`` binds an array of sampler views to
+  fragment shader stage. Every binding point acquires a reference
+  to a respective sampler view and releases a reference to the previous
+  sampler view.
+
+* ``set_vertex_sampler_views`` binds an array of sampler views to vertex
+  shader stage. Every binding point acquires a reference to a respective
+  sampler view and releases a reference to the previous sampler view.
+
+* ``create_sampler_view`` creates a new sampler view. texture is associated
+  with the sampler view which results in sampler view holding a reference
+  to the texture. Format specified in template must be compatible
+  with texture format.
+
+* ``sampler_view_destroy`` destroys a sampler view and releases its reference
+  to associated texture.
+
 * ``set_vertex_buffers``
 
 




More information about the mesa-commit mailing list