gallium/docs: clarify set_sampler_views (v2)
Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
7ff6705b8d
commit
e167e8f8a2
|
@ -143,6 +143,11 @@ to the array index which is used for sampling.
|
||||||
to a respective sampler view and releases a reference to the previous
|
to a respective sampler view and releases a reference to the previous
|
||||||
sampler view.
|
sampler view.
|
||||||
|
|
||||||
|
Sampler views outside of ``[start_slot, start_slot + num_views)`` are
|
||||||
|
unmodified. If ``views`` is NULL, the behavior is the same as if
|
||||||
|
``views[n]`` was NULL for the entire range, ie. releasing the reference
|
||||||
|
for all the sampler views in the specified range.
|
||||||
|
|
||||||
* ``create_sampler_view`` creates a new sampler view. ``texture`` is associated
|
* ``create_sampler_view`` creates a new sampler view. ``texture`` is associated
|
||||||
with the sampler view which results in sampler view holding a reference
|
with the sampler view which results in sampler view holding a reference
|
||||||
to the texture. Format specified in template must be compatible
|
to the texture. Format specified in template must be compatible
|
||||||
|
|
|
@ -327,7 +327,7 @@ struct pipe_context {
|
||||||
void (*set_sampler_views)(struct pipe_context *,
|
void (*set_sampler_views)(struct pipe_context *,
|
||||||
enum pipe_shader_type shader,
|
enum pipe_shader_type shader,
|
||||||
unsigned start_slot, unsigned num_views,
|
unsigned start_slot, unsigned num_views,
|
||||||
struct pipe_sampler_view **);
|
struct pipe_sampler_view **views);
|
||||||
|
|
||||||
void (*set_tess_state)(struct pipe_context *,
|
void (*set_tess_state)(struct pipe_context *,
|
||||||
const float default_outer_level[4],
|
const float default_outer_level[4],
|
||||||
|
|
Loading…
Reference in New Issue