From a45b7f47ee0e38b288cc8fc4f6a1c013e8c227bc Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Fri, 28 May 2010 13:14:07 -0400 Subject: gallium: basic and initial implementation of the stream output interface aka transform feedback --- src/gallium/include/pipe/p_context.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gallium/include/pipe/p_context.h') diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index 3e082bef2f..0267ed8fa4 100644 --- a/src/gallium/include/pipe/p_context.h +++ b/src/gallium/include/pipe/p_context.h @@ -186,6 +186,11 @@ struct pipe_context { void (*bind_vertex_elements_state)(struct pipe_context *, void *); void (*delete_vertex_elements_state)(struct pipe_context *, void *); + void * (*create_stream_output_state)(struct pipe_context *, + const struct pipe_stream_output_state *); + void (*bind_stream_output_state)(struct pipe_context *, void *); + void (*delete_stream_output_state)(struct pipe_context*, void*); + /*@}*/ /** @@ -232,6 +237,13 @@ struct pipe_context { unsigned num_buffers, const struct pipe_vertex_buffer * ); + void (*set_stream_output_buffers)(struct pipe_context *, + struct pipe_resource **buffers, + int *offsets, /*array of offsets + from the start of each + of the buffers */ + int num_buffers); + /*@}*/ -- cgit v1.2.3