gallium: add pipe_context::bind_sampler_states()
authorBrian Paul <brianp@vmware.com>
Thu, 12 Sep 2013 20:55:06 +0000 (14:55 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Oct 2013 20:05:26 +0000 (14:05 -0600)
The bind_vertex/geometry/fragment/compute_sampler_states() functions
will be replaced by a single functions.

src/gallium/include/pipe/p_context.h

index 7d09ce4b19a47387d46eb5f9e899f8c2789559fa..2a8e03c0b32a5c4c608d74d440cd1eee143d8b4d 100644 (file)
@@ -139,6 +139,11 @@ struct pipe_context {
 
    void * (*create_sampler_state)(struct pipe_context *,
                                   const struct pipe_sampler_state *);
+
+   void   (*bind_sampler_states)(struct pipe_context *,
+                                 unsigned shader, unsigned start_slot,
+                                 unsigned num_samplers, void **samplers);
+
    void   (*bind_fragment_sampler_states)(struct pipe_context *,
                                           unsigned num_samplers,
                                           void **samplers);