diff options
author | Brian Paul <brianp@vmware.com> | 2013-10-07 18:16:22 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-10-23 10:15:38 -0600 |
commit | a3ed98f7aa85636579a5696bf036ec13e5c9104a (patch) | |
tree | 104078a2a8b875e5ec7c5524e7797d46d109d7e0 /src/gallium/docs/source/context.rst | |
parent | b11fc226e6b106de8eb777a8e62c4f7303c66fbc (diff) |
gallium: new, unified pipe_context::set_sampler_views() function
The new function replaces four old functions: set_fragment/vertex/
geometry/compute_sampler_views().
Note: at this time, it's expected that the 'start' parameter will
always be zero.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/gallium/docs/source/context.rst')
-rw-r--r-- | src/gallium/docs/source/context.rst | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index e471eebd66..1037162aef 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -104,16 +104,10 @@ The ``first_layer`` and ``last_layer`` fields specify the layer range the texture is going to be constrained to. Similar to the LOD range, this is added to the array index which is used for sampling. -* ``set_fragment_sampler_views`` binds an array of sampler views to - fragment shader stage. Every binding point acquires a reference +* ``set_sampler_views`` binds an array of sampler views to a shader stage. + Every binding point acquires a reference to a respective sampler view and releases a reference to the previous - sampler view. If M is the maximum number of sampler units and N units - is passed to set_fragment_sampler_views, the driver should unbind the - sampler views for units N..M-1. - -* ``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. + 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 @@ -601,5 +595,5 @@ method. In addition, normal texture sampling is allowed from the compute program: ``bind_sampler_states`` may be used to set up texture -samplers for the compute stage and ``set_compute_sampler_views`` may +samplers for the compute stage and ``set_sampler_views`` may be used to bind a number of sampler views to it. |